-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tls statemachine during tls v1.2 renegotiation #712
Fix tls statemachine during tls v1.2 renegotiation #712
Conversation
src/tls/openssl/tls_tcp.c
Outdated
&& SSL_state(tc->ssl) != TLS_ST_CW_FINISHED | ||
&& SSL_state(tc->ssl) != TLS_ST_SW_SRVR_DONE | ||
#endif | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is a bit difficult to read ...
perhaps it is better to declare a bool before the if and use that bool inside the if ?
5801dfb
to
4e82824
Compare
thanks, this looks much better :) |
src/tls/openssl/tls_tcp.c
Outdated
@@ -217,6 +217,7 @@ static bool recv_handler(int *err, struct mbuf *mb, bool *estab, void *arg) | |||
{ | |||
struct tls_conn *tc = arg; | |||
int r; | |||
bool reneg_state = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer reneg
as name for this flag.
4e82824
to
a586547
Compare
a586547
to
4832ccc
Compare
Looks good to me. |
Are there any security risks by handling/accepting renegotiations?
Or is this unrelated? |
Maybe we could make it configurable for specific HTTP URL paths to allow TLS 1.2 renegotiation in a hopefully simple and readable way. |
No description provided.