diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-05-25 07:38:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-05-25 07:38:31 -0400 |
commit | 42ba87d9648c5aa6c15d53175c477ce697932188 (patch) | |
tree | 4e5e66f8a4e7ac45b9c60dd644a87c8566ffc537 /src/lib/tls/tortls_openssl.c | |
parent | e2c1ac214c0ae77282709b50fb9fbdde50dd7a1f (diff) | |
download | tor-42ba87d9648c5aa6c15d53175c477ce697932188.tar.gz tor-42ba87d9648c5aa6c15d53175c477ce697932188.zip |
Remove the function `tor_tls_assert_renegotiation_unblocked`.
It was used nowhere outside its own unit tests, and it was causing
compilation issues with recent OpenSSL 3.0.0 alphas.
Closes ticket 40399.
Diffstat (limited to 'src/lib/tls/tortls_openssl.c')
-rw-r--r-- | src/lib/tls/tortls_openssl.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/lib/tls/tortls_openssl.c b/src/lib/tls/tortls_openssl.c index 80b0df301f..c5031a00aa 100644 --- a/src/lib/tls/tortls_openssl.c +++ b/src/lib/tls/tortls_openssl.c @@ -1168,19 +1168,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. |