Skip to content

Commit

Permalink
Fix for TLS1.3 to 1.2 downgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
lealem47 committed Jun 5, 2024
1 parent 0397d90 commit d20ac2c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tls13.c
Original file line number Diff line number Diff line change
Expand Up @@ -5298,6 +5298,13 @@ int DoTls13ServerHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
return ret;
}
#endif /* WOLFSSL_DTLS13 */

#ifndef WOLFSSL_NO_TLS12
return DoServerHello(ssl, input, inOutIdx, helloSz);
#else
SendAlert(ssl, alert_fatal, wolfssl_alert_protocol_version);
return VERSION_ERROR;
#endif
}
}

Expand Down

0 comments on commit d20ac2c

Please sign in to comment.