Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MacroFake
Tor
Commits
faf89589
Unverified
Commit
faf89589
authored
May 24, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/tls/tortls_openssl.c
View file @
faf89589
...
...
@@ -1194,13 +1194,12 @@ tor_tls_block_renegotiation(tor_tls_t *tls)
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) && ... */
if
(
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
;
}
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment