Skip to content

Commit

Permalink
tls: handle server done state during tls 1.2 renegotiation
Browse files Browse the repository at this point in the history
  • Loading branch information
fAuernigg committed Feb 28, 2023
1 parent b02dd1c commit 4832ccc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tls/openssl/tls_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ static bool recv_handler(int *err, struct mbuf *mb, bool *estab, void *arg)
if (SSL_state(tc->ssl) != SSL_ST_OK) {
#if !defined(LIBRESSL_VERSION_NUMBER)
reneg = SSL_state(tc->ssl) == TLS_ST_CW_CLNT_HELLO
|| SSL_state(tc->ssl) == TLS_ST_CW_FINISHED;
|| SSL_state(tc->ssl) == TLS_ST_CW_FINISHED
|| SSL_state(tc->ssl) == TLS_ST_SW_SRVR_DONE;
#endif

if (tc->up && !reneg) {
Expand Down

0 comments on commit 4832ccc

Please sign in to comment.