aboutsummaryrefslogtreecommitdiff
path: root/src/lib/tls/tortls_openssl.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2021-05-25 13:25:23 +0000
committerAlexander Færøy <ahf@torproject.org>2021-05-25 13:25:23 +0000
commitf66fa8eba58bb0d646e74923993ba4ebf79e4df5 (patch)
tree02f7e0948016ded88c62e8ea265efad1d339a2a8 /src/lib/tls/tortls_openssl.c
parentef88ceedba47c26f65e6122eadcaa739564d3778 (diff)
parent11c7e6573013f60d2897720ebbc8c4164e124574 (diff)
downloadtor-f66fa8eba58bb0d646e74923993ba4ebf79e4df5.tar.gz
tor-f66fa8eba58bb0d646e74923993ba4ebf79e4df5.zip
Merge branch 'maint-0.4.4' into release-0.4.4
Diffstat (limited to 'src/lib/tls/tortls_openssl.c')
-rw-r--r--src/lib/tls/tortls_openssl.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/lib/tls/tortls_openssl.c b/src/lib/tls/tortls_openssl.c
index 2269714141..5c92df1259 100644
--- a/src/lib/tls/tortls_openssl.c
+++ b/src/lib/tls/tortls_openssl.c
@@ -1190,19 +1190,6 @@ tor_tls_block_renegotiation(tor_tls_t *tls)
#endif
}
-/** Assert that the flags that allow legacy renegotiation are still set */
-void
-tor_tls_assert_renegotiation_unblocked(tor_tls_t *tls)
-{
-#if defined(SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION) && \
- SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION != 0
- long options = SSL_get_options(tls->ssl);
- tor_assert(0 != (options & SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION));
-#else
- (void) tls;
-#endif /* defined(SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION) && ... */
-}
-
/**
* Tell the TLS library that the underlying socket for <b>tls</b> has been
* closed, and the library should not attempt to free that socket itself.