Skip to content

Commit

Permalink
Merge pull request wolfSSL#7619 from lealem47/zd18074
Browse files Browse the repository at this point in the history
Fix for TLS1.3 to 1.2 downgrade
  • Loading branch information
SparkiDev authored and jefferyq2 committed Jun 9, 2024
1 parent 20ac43e commit d03ef89
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 d03ef89

Please sign in to comment.