mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Tidy up TLS 1.3 and DTLS 1.3 check
This commit is contained in:
@ -10659,8 +10659,7 @@ 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 &&
|
!IsAtLeastTLSv1_3(ssl->version)) {
|
||||||
ssl->ctx->method->version.minor != DTLSv1_3_MINOR)) {
|
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user