Skip to content

Commit

Permalink
tls: allow secure TLS renegotiation (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianfridrich authored May 16, 2024
1 parent c1e09de commit 14c981e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tls/openssl/tls_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ static bool recv_handler(int *err, struct mbuf *mb, bool *estab, void *arg)

if (SSL_state(tc->ssl) != SSL_ST_OK) {

if (tc->up) {
if (tc->up && !SSL_get_secure_renegotiation_support(tc->ssl)) {
*err = EPROTO;
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tls/openssl/tls_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static void conn_recv(struct tls_conn *tc, struct mbuf *mb)

if (SSL_state(tc->ssl) != SSL_ST_OK) {

if (tc->up) {
if (tc->up && !SSL_get_secure_renegotiation_support(tc->ssl)) {
conn_close(tc, EPROTO);
return;
}
Expand Down

0 comments on commit 14c981e

Please sign in to comment.