Unverified Commit faf89589 authored by MarcoFalke's avatar MarcoFalke
Browse files

Fix preprocessor error in SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION

parent e247aab4
Pipeline #6589 passed with stage
in 16 minutes and 44 seconds
...@@ -1194,13 +1194,12 @@ tor_tls_block_renegotiation(tor_tls_t *tls) ...@@ -1194,13 +1194,12 @@ tor_tls_block_renegotiation(tor_tls_t *tls)
void void
tor_tls_assert_renegotiation_unblocked(tor_tls_t *tls) tor_tls_assert_renegotiation_unblocked(tor_tls_t *tls)
{ {
#if defined(SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION) && \ if (SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION != 0) {
SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION != 0 long options = SSL_get_options(tls->ssl);
long options = SSL_get_options(tls->ssl); tor_assert(0 != (options & SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION));
tor_assert(0 != (options & SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION)); } else {
#else (void) tls;
(void) tls; }
#endif /* defined(SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION) && ... */
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment