diff options
author | Alexander Færøy <ahf@torproject.org> | 2021-05-25 13:25:23 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2021-05-25 13:25:23 +0000 |
commit | 4a7379b80a3d0f61d258b26f82d894da9b8cd0f5 (patch) | |
tree | 831550df41331c57c7a9f033e26d63fee0636760 /src/lib | |
parent | 97b61e21a9a713ecd672ff106428286238ae05e4 (diff) | |
parent | 11c7e6573013f60d2897720ebbc8c4164e124574 (diff) | |
download | tor-4a7379b80a3d0f61d258b26f82d894da9b8cd0f5.tar.gz tor-4a7379b80a3d0f61d258b26f82d894da9b8cd0f5.zip |
Merge branch 'maint-0.4.4' into maint-0.4.5
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/tls/tortls.h | 1 | ||||
-rw-r--r-- | src/lib/tls/tortls_nss.c | 7 | ||||
-rw-r--r-- | src/lib/tls/tortls_openssl.c | 13 |
3 files changed, 0 insertions, 21 deletions
diff --git a/src/lib/tls/tortls.h b/src/lib/tls/tortls.h index 517cdc17dd..3703ecad56 100644 --- a/src/lib/tls/tortls.h +++ b/src/lib/tls/tortls.h @@ -108,7 +108,6 @@ int tor_tls_handshake(tor_tls_t *tls); int tor_tls_finish_handshake(tor_tls_t *tls); void tor_tls_unblock_renegotiation(tor_tls_t *tls); void tor_tls_block_renegotiation(tor_tls_t *tls); -void tor_tls_assert_renegotiation_unblocked(tor_tls_t *tls); int tor_tls_get_pending_bytes(tor_tls_t *tls); size_t tor_tls_get_forced_write_size(tor_tls_t *tls); diff --git a/src/lib/tls/tortls_nss.c b/src/lib/tls/tortls_nss.c index c873367f6f..25446a81af 100644 --- a/src/lib/tls/tortls_nss.c +++ b/src/lib/tls/tortls_nss.c @@ -646,13 +646,6 @@ tor_tls_block_renegotiation(tor_tls_t *tls) /* We don't support renegotiation with NSS. */ } -void -tor_tls_assert_renegotiation_unblocked(tor_tls_t *tls) -{ - tor_assert(tls); - /* We don't support renegotiation with NSS. */ -} - int tor_tls_get_pending_bytes(tor_tls_t *tls) { diff --git a/src/lib/tls/tortls_openssl.c b/src/lib/tls/tortls_openssl.c index ad9b49ab4f..78ecc25a35 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. |