Merge pull request #5518 from CallumMcLoughlin/master

Allow Post Quantum Keyshare for DTLS 1.3
This commit is contained in:
David Garske
2022-08-31 12:29:08 -07:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -10659,7 +10659,7 @@ int wolfSSL_UseKeyShare(WOLFSSL* ssl, word16 group)
if (WOLFSSL_NAMED_GROUP_IS_PQC(group)) {
if (ssl->ctx != NULL && ssl->ctx->method != NULL &&
ssl->ctx->method->version.minor != TLSv1_3_MINOR) {
!IsAtLeastTLSv1_3(ssl->version)) {
return BAD_FUNC_ARG;
}