aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-09-14 14:43:44 -0400
committerNick Mathewson <nickm@torproject.org>2011-10-10 23:14:10 -0400
commit8c9fdecfe9e6c93e678a5917e302aa18ada8a3b6 (patch)
tree331ccdc0e75e7db6eea82b98937a7bd5a3477e33 /src/common/tortls.h
parentf4c1fa2a04c310c4e0274129bb2fff2aacb59248 (diff)
downloadtor-8c9fdecfe9e6c93e678a5917e302aa18ada8a3b6.tar
tor-8c9fdecfe9e6c93e678a5917e302aa18ada8a3b6.tar.gz
Function to get digests of the certs and their keys
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r--src/common/tortls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h
index 36309afd4..40eb8306e 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -112,6 +112,8 @@ void tor_cert_free(tor_cert_t *cert);
tor_cert_t *tor_cert_decode(const uint8_t *certificate, size_t certificate_len);
void tor_cert_get_der(const tor_cert_t *cert,
const uint8_t **encoded_out, size_t *size_out);
+const digests_t *tor_cert_get_id_digests(const tor_cert_t *cert);
+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);