summaryrefslogtreecommitdiff
path: root/src/common/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-31 19:12:32 -0400
committerNick Mathewson <nickm@torproject.org>2017-06-05 15:27:33 -0400
commit50facb40bb42e070b858ca052edccd0f3a5b83b5 (patch)
tree0a17e683cc6f570efec5a09861be5c1ab7bb7a27 /src/common/tortls.h
parentec61ae59a5d009a9e80f3bfa9a2aa5f5dfa05551 (diff)
downloadtor-50facb40bb42e070b858ca052edccd0f3a5b83b5.tar.gz
tor-50facb40bb42e070b858ca052edccd0f3a5b83b5.zip
On v3 link handshake, send the correct link certificate
Previously we'd send the _current_ link certificate, which would cause a handshaking failure when the TLS context rotated.
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 7c035a2cd5..ae11b7ab60 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -198,6 +198,7 @@ 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);
MOCK_DECL(tor_x509_cert_t *,tor_tls_get_peer_cert,(tor_tls_t *tls));
+tor_x509_cert_t *tor_tls_get_own_cert(tor_tls_t *tls);
int tor_tls_verify(int severity, tor_tls_t *tls, crypto_pk_t **identity);
int tor_tls_check_lifetime(int severity,
tor_tls_t *tls, int past_tolerance,