Skip to content

Commit b7fdc49

Browse files
committed
8210334: TLS 1.3 server fails if ClientHello doesn't have pre_shared_key and psk_key_exchange_modes
Reviewed-by: ascarpino, wetmore
1 parent d256eb9 commit b7fdc49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/java.base/share/classes/sun/security/ssl/PskKeyExchangeModesExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public void absent(ConnectionContext context,
323323
// servers MUST abort the handshake.
324324
SSLExtensionSpec spec =
325325
shc.handshakeExtensions.get(SSLExtension.CH_PRE_SHARED_KEY);
326-
if (spec == null) {
326+
if (spec != null) {
327327
shc.conContext.fatal(Alert.HANDSHAKE_FAILURE,
328328
"pre_shared_key key extension is offered " +
329329
"without a psk_key_exchange_modes extension");

0 commit comments

Comments
 (0)