From 12afd4777c5ef3003b08acb34e9090a09703cf60 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 5 Nov 2007 18:15:54 +0000 Subject: r16413@catbus: nickm | 2007-11-05 13:14:18 -0500 Add functions to encode certificates svn:r12384 --- src/common/tortls.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/tortls.h') diff --git a/src/common/tortls.h b/src/common/tortls.h index cbda57880c..639502e378 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -55,6 +55,8 @@ void tor_tls_free(tor_tls_t *tls); int tor_tls_peer_has_cert(tor_tls_t *tls); int tor_tls_get_cert_digests(tor_tls_t *tls, char *my_digest_out, char *peer_digest_out); +char *tor_tls_encode_my_certificate(tor_tls_t *tls, size_t *size_out, + int conn_cert); 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); -- cgit v1.2.3-54-g00ecf