Allow Post Quantum Keyshare for DTLS 1.3

This commit is contained in:
CallumMcLoughlin
2022-08-28 17:35:28 +12:00
parent e88bd66501
commit 91d3cd7111

View File

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