-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b102
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8239030 | openjdk8u252 | Bradford Wetmore | P3 | Resolved | Fixed | b03 |
JDK-8235805 | 8u251 | Bradford Wetmore | P3 | Resolved | Fixed | b01 |
JDK-8239692 | emb-8u251 | Bradford Wetmore | P3 | Resolved | Fixed | team |
Attached file HandShakeALPN.java is for checking ALPN value during TLS handshake, the test creates X509KeyManager for the Server and X509TrustManager for the Client respectively. When they are called to provide and check key material, check that the ALPN values are correct.
The attached test fails because the method getHandshakeApplictionProtocol() in SSLSocket class always returns null.
java.base/share/classes/sun/security/ssl/SSLSocketImpl.java
Line 2588 -2593:
public synchronized String getHandshakeApplicationProtocol() {
if ((handshaker != null) && !handshaker.started()) {
return handshaker.getHandshakeApplicationProtocol();
}
return null;
}
if TLS Handshake is on-going, "!handshaker.started()" returns false , if TLS Handshake is completed, "handshaker != null" returns false. so this method will always return null, whenever TLS Handshake is on-going or done.
The attached test fails because the method getHandshakeApplictionProtocol() in SSLSocket class always returns null.
java.base/share/classes/sun/security/ssl/SSLSocketImpl.java
Line 2588 -2593:
public synchronized String getHandshakeApplicationProtocol() {
if ((handshaker != null) && !handshaker.started()) {
return handshaker.getHandshakeApplicationProtocol();
}
return null;
}
if TLS Handshake is on-going, "!handshaker.started()" returns false , if TLS Handshake is completed, "handshaker != null" returns false. so this method will always return null, whenever TLS Handshake is on-going or done.
- backported by
-
JDK-8235805 ALPN: getHandshakeApplicationProtocol() always return null
- Resolved
-
JDK-8239030 ALPN: getHandshakeApplicationProtocol() always return null
- Resolved
-
JDK-8239692 ALPN: getHandshakeApplicationProtocol() always return null
- Resolved
- relates to
-
JDK-8051498 JEP 244: TLS Application-Layer Protocol Negotiation Extension
- Closed