diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-09-22 10:18:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-10-10 23:14:16 -0400 |
commit | 0a4f56277290d4736db3b15dc4c2071000f7883f (patch) | |
tree | 7bede05aa8fdd15409cc9e0eab27bba8ad2d4026 /src/common/tortls.h | |
parent | 92602345e001d8e66038d5d98cbb21eea5ef40c9 (diff) | |
download | tor-0a4f56277290d4736db3b15dc4c2071000f7883f.tar.gz tor-0a4f56277290d4736db3b15dc4c2071000f7883f.zip |
Functions to get a public RSA key from a cert
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index 70d24a5303..b522dd112a 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -118,6 +118,8 @@ const digests_t *tor_cert_get_cert_digests(const tor_cert_t *cert); int tor_tls_get_my_certs(int server, const tor_cert_t **link_cert_out, const tor_cert_t **id_cert_out); +crypto_pk_env_t *tor_tls_get_my_client_auth_key(void); +crypto_pk_env_t *tor_tls_cert_get_key(tor_cert_t *cert); int tor_tls_cert_matches_key(const tor_tls_t *tls, const tor_cert_t *cert); int tor_tls_cert_is_valid(const tor_cert_t *cert, const tor_cert_t *signing_cert); |