summaryrefslogtreecommitdiff
path: root/src/common/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-06 18:00:07 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-06 18:00:07 +0000
commite047f7f8652d9c67ed96d4ff6f02fa7e23333c54 (patch)
tree1108bb0903409319cd8d49057b6f9c31d7bb7a95 /src/common/tortls.h
parentaf60d79f5deee3e6b264049dfa8512f381a8cbc6 (diff)
downloadtor-e047f7f8652d9c67ed96d4ff6f02fa7e23333c54.tar.gz
tor-e047f7f8652d9c67ed96d4ff6f02fa7e23333c54.zip
r16455@catbus: nickm | 2007-11-06 12:48:00 -0500
Parse CERT cells and act correctly when we get them. svn:r12396
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r--src/common/tortls.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h
index a0fad8488a..3a58cc2795 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -60,6 +60,12 @@ char *tor_tls_encode_my_certificate(tor_tls_t *tls, size_t *size_out,
crypto_pk_env_t *tor_tls_dup_private_key(tor_tls_t *tls);
int tor_tls_verify_v1(int severity, tor_tls_t *tls,
crypto_pk_env_t **identity);
+int tor_tls_verify_certs_v2(int severity, tor_tls_t *tls,
+ const char *cert_str, size_t cert_len,
+ const char *id_cert_str, size_t id_cert_len,
+ crypto_pk_env_t **cert_key_out,
+ char *conn_cert_digest_out,
+ char *id_digest_out);
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);