forked from wolfSSL/wolfssl
Announce TLSX_PSK_KEY_EXCHANGE_MODES in non-resuming ClientHello.
- can be reverted to previous style by defining NO_TLSX_PSKKEM_PLAIN_ANNOUNCE - QUIC interop testing reveals that at least QUIC stacks refrain from issuing session tickets unless the ClientHello shows this extension.
This commit is contained in:
@@ -11385,7 +11385,15 @@ int TLSX_PopulateExtensions(WOLFSSL* ssl, byte isServer)
|
|||||||
}
|
}
|
||||||
#endif /* !NO_PSK */
|
#endif /* !NO_PSK */
|
||||||
#if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK)
|
#if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK)
|
||||||
|
|
||||||
|
#ifndef NO_TLSX_PSKKEM_PLAIN_ANNOUNCE
|
||||||
|
/* Some servers do not generate session tickets unless
|
||||||
|
* the extension is seen in a non-resume client hello */
|
||||||
|
if (1) {
|
||||||
|
(void)usingPSK;
|
||||||
|
#else
|
||||||
if (usingPSK) {
|
if (usingPSK) {
|
||||||
|
#endif
|
||||||
byte modes;
|
byte modes;
|
||||||
|
|
||||||
/* Pre-shared key modes: mandatory extension for resumption. */
|
/* Pre-shared key modes: mandatory extension for resumption. */
|
||||||
|
Reference in New Issue
Block a user