aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-09-22 11:01:14 -0400
committerNick Mathewson <nickm@torproject.org>2011-10-10 23:14:16 -0400
commite48e47fa03fa09d89527c1bbfaee4c9d7d3eee6e (patch)
tree624bcdfae51f53df37d419cabb1157c37c529e8e /src/common/tortls.h
parenta6fc5059cdb3263c0053ac76c39bef43a61269cc (diff)
downloadtor-e48e47fa03fa09d89527c1bbfaee4c9d7d3eee6e.tar
tor-e48e47fa03fa09d89527c1bbfaee4c9d7d3eee6e.tar.gz
Function to return peer cert as tor_tls_cert
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r--src/common/tortls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h
index b522dd112..00bf4066d 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -66,6 +66,7 @@ void tor_tls_set_renegotiate_callback(tor_tls_t *tls,
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);
+tor_cert_t *tor_tls_get_peer_cert(tor_tls_t *tls);
int tor_tls_verify(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);