mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Merge pull request #7407 from mrdeep1/key_share
Handle PSK-Only negotiation with key_share not being sent in Server Hello
This commit is contained in:
@ -14925,6 +14925,12 @@ int TLSX_Parse(WOLFSSL* ssl, const byte* input, word16 length, byte msgType,
|
||||
else if (!isRequest && ssl->options.haveEMS && !pendingEMS)
|
||||
ssl->options.haveEMS = 0;
|
||||
#endif
|
||||
#if defined(WOLFSSL_TLS13) && !defined(NO_PSK)
|
||||
if (IsAtLeastTLSv1_3(ssl->version) && msgType == server_hello &&
|
||||
IS_OFF(seenType, TLSX_ToSemaphore(TLSX_KEY_SHARE))) {
|
||||
ssl->options.noPskDheKe = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (ret == 0)
|
||||
ret = SNI_VERIFY_PARSE(ssl, isRequest);
|
||||
|
Reference in New Issue
Block a user