summaryrefslogtreecommitdiff
path: root/src/common/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-05 18:15:50 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-05 18:15:50 +0000
commitea1bea5830ad90d9ea14a84ffa4b465827ff8af4 (patch)
tree1b09992d04b57640ec53b0b8b963990a706519b4 /src/common/tortls.h
parent22c31d91ab5766db23f65a28d01009f594095901 (diff)
downloadtor-ea1bea5830ad90d9ea14a84ffa4b465827ff8af4.tar.gz
tor-ea1bea5830ad90d9ea14a84ffa4b465827ff8af4.zip
r16411@catbus: nickm | 2007-11-05 11:27:37 -0500
Remember X509 certificates in the context. Store peer/self certificate digests in handshake state. svn:r12382
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r--src/common/tortls.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h
index eac337b921..cbda57880c 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -53,9 +53,10 @@ tor_tls_t *tor_tls_new(int sock, int is_server);
int tor_tls_is_server(tor_tls_t *tls);
void tor_tls_free(tor_tls_t *tls);
int tor_tls_peer_has_cert(tor_tls_t *tls);
-int tor_tls_get_peer_cert_nickname(int severity, tor_tls_t *tls,
- char *buf, size_t buflen);
-int tor_tls_verify(int severity, tor_tls_t *tls, crypto_pk_env_t **identity);
+int tor_tls_get_cert_digests(tor_tls_t *tls, char *my_digest_out,
+ char *peer_digest_out);
+int tor_tls_verify_v1(int severity, tor_tls_t *tls,
+ crypto_pk_env_t **identity);
int tor_tls_check_lifetime(tor_tls_t *tls, int tolerance);
int tor_tls_read(tor_tls_t *tls, char *cp, size_t len);
int tor_tls_write(tor_tls_t *tls, const char *cp, size_t n);