-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
13
-
generic
-
generic
SSLContext sslContext = SSLContext.getDefault();
SSLEngine sslEngine = sslContext.createSSLEngine();
sslEngine.closeOutbound();
SSLEngineResult.HandshakeStatus hsStatus = sslEngine.getHandshakeStatus();
System.err.println("hsStatus = " + hsStatus);
This prints "NOT_HANDSHAKING" in Java 8 and "NEED_UNWRAP" in JDK 11+.
Refer to discussion in the mailing list:
https://mail.openjdk.java.net/pipermail/security-dev/2019-October/020789.html
SSLEngine sslEngine = sslContext.createSSLEngine();
sslEngine.closeOutbound();
SSLEngineResult.HandshakeStatus hsStatus = sslEngine.getHandshakeStatus();
System.err.println("hsStatus = " + hsStatus);
This prints "NOT_HANDSHAKING" in Java 8 and "NEED_UNWRAP" in JDK 11+.
Refer to discussion in the mailing list:
https://mail.openjdk.java.net/pipermail/security-dev/2019-October/020789.html