summaryrefslogtreecommitdiff
path: root/src/common/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-05-10 16:47:52 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 08:37:20 -0400
commitb004ff45d7f637675be976737eb7efea8da5b49c (patch)
tree3a1db9609917f593d325e11e8eee2abbd404afe4 /src/common/tortls.h
parentfdd8f8df67be92b5e3058afcad68a1e267442b77 (diff)
downloadtor-b004ff45d7f637675be976737eb7efea8da5b49c.tar.gz
tor-b004ff45d7f637675be976737eb7efea8da5b49c.zip
New authentication types to use RFC5705.
See proposal 244. This feature lets us stop looking at the internals of SSL objects, *and* should let us port better to more SSL libraries, if they have RFC5705 support. Preparatory for #19156
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r--src/common/tortls.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h
index 7c035a2cd5..fe5898ef5c 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -226,6 +226,11 @@ int tor_tls_used_v1_handshake(tor_tls_t *tls);
int tor_tls_get_num_server_handshakes(tor_tls_t *tls);
int tor_tls_server_got_renegotiate(tor_tls_t *tls);
MOCK_DECL(int,tor_tls_get_tlssecrets,(tor_tls_t *tls, uint8_t *secrets_out));
+MOCK_DECL(int,tor_tls_export_key_material,(
+ tor_tls_t *tls, uint8_t *secrets_out,
+ const uint8_t *context,
+ size_t context_len,
+ const char *label));
/* Log and abort if there are unhandled TLS errors in OpenSSL's error stack.
*/