diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-10-19 00:46:51 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-10-19 00:46:51 +0000 |
commit | 0ec2a34a1d4ebbe8d3a3f7cc47402471f26d63d4 (patch) | |
tree | 56777f6cd097fbb7172f88d7b8b8ef8977d8aa00 /src/common/tortls.h | |
parent | ec96419109aa0a53d3f2fe2fe9f41bb590115109 (diff) | |
download | tor-0ec2a34a1d4ebbe8d3a3f7cc47402471f26d63d4.tar.gz tor-0ec2a34a1d4ebbe8d3a3f7cc47402471f26d63d4.zip |
Code to get nicknames from peer certs
svn:r627
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index 3ab252d8b3..fdfa161920 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -21,6 +21,7 @@ int tor_tls_context_new(crypto_pk_env_t *rsa, int isServer, const char *nickname tor_tls *tor_tls_new(int sock, int isServer); void tor_tls_free(tor_tls *tls); int tor_tls_peer_has_cert(tor_tls *tls); +int tor_tls_get_peer_cert_nickname(tor_tls *tls, char *buf, int buflen); crypto_pk_env_t *tor_tls_verify(tor_tls *tls); int tor_tls_read(tor_tls *tls, char *cp, int len); int tor_tls_write(tor_tls *tls, char *cp, int n); |