summaryrefslogtreecommitdiff
path: root/src/common/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-09-10 00:47:39 +0000
committerNick Mathewson <nickm@torproject.org>2003-09-10 00:47:39 +0000
commite22b2718955ef0409c63a82a506193d1a63b090d (patch)
treeba09777974dd5173ad3e97bf01b01fe035b2c838 /src/common/tortls.h
parent9955b265ab77c712861f33411e521c9761184226 (diff)
downloadtor-e22b2718955ef0409c63a82a506193d1a63b090d.tar.gz
tor-e22b2718955ef0409c63a82a506193d1a63b090d.zip
Add certificate verification functions
svn:r438
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r--src/common/tortls.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h
index 295d1502c3..2f45c4da33 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -20,8 +20,8 @@ int tor_tls_write_certificate(char *certfile, crypto_pk_env_t *rsa, char *nickna
int tor_tls_context_new(char *certfile, crypto_pk_env_t *rsa, int isServer);
tor_tls *tor_tls_new(int sock, int isServer);
void tor_tls_free(tor_tls *tls);
-int tor_tls_peer_is_valid(tor_tls *tls);
-crypto_pk_env_t *tor_tls_get_peer_pk(tor_tls *tls);
+int tor_tls_peer_has_cert(tor_tls *tls);
+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);
int tor_tls_handshake(tor_tls *tls);