< prev index next >
src/java.base/share/classes/sun/security/ssl/Alert.java
Print this page
rev 52900 : 8232581: Improve TLS verification
Reviewed-by: xuelei, rhalade, mschoene
@@ -271,12 +271,14 @@
ClientAuthType.CLIENT_AUTH_REQUESTED)) {
throw tc.fatal(Alert.HANDSHAKE_FAILURE,
"received handshake warning: " + alert.description);
} else {
// Otherwise ignore the warning but remove the
- // CertificateVerify handshake consumer so the state
- // machine doesn't expect it.
+ // Certificate and CertificateVerify handshake
+ // consumer so the state machine doesn't expect it.
+ tc.handshakeContext.handshakeConsumers.remove(
+ SSLHandshake.CERTIFICATE.id);
tc.handshakeContext.handshakeConsumers.remove(
SSLHandshake.CERTIFICATE_VERIFY.id);
}
} // Otherwise, ignore the warning
} else { // fatal or unknown
< prev index next >