mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8291509: Minor cleanup could be done in sun.security
Reviewed-by: weijun
This commit is contained in:
parent
6beeb8471c
commit
4cec141a90
298 changed files with 2650 additions and 3262 deletions
|
@ -321,7 +321,7 @@ final class ECDHKeyExchange {
|
|||
}
|
||||
}
|
||||
|
||||
if (x509Possession == null || ecdheCredentials == null) {
|
||||
if (x509Possession == null) {
|
||||
throw shc.conContext.fatal(Alert.HANDSHAKE_FAILURE,
|
||||
"No sufficient ECDHE key agreement parameters negotiated");
|
||||
}
|
||||
|
@ -370,7 +370,7 @@ final class ECDHKeyExchange {
|
|||
}
|
||||
}
|
||||
|
||||
if (ecdhePossession == null || x509Credentials == null) {
|
||||
if (ecdhePossession == null) {
|
||||
throw chc.conContext.fatal(Alert.HANDSHAKE_FAILURE,
|
||||
"No sufficient ECDH key agreement parameters negotiated");
|
||||
}
|
||||
|
@ -414,7 +414,7 @@ final class ECDHKeyExchange {
|
|||
}
|
||||
}
|
||||
|
||||
if (ecdhePossession == null || ecdheCredentials == null) {
|
||||
if (ecdhePossession == null) {
|
||||
throw context.conContext.fatal(Alert.HANDSHAKE_FAILURE,
|
||||
"No sufficient ECDHE key agreement parameters negotiated");
|
||||
}
|
||||
|
@ -465,7 +465,7 @@ final class ECDHKeyExchange {
|
|||
}
|
||||
}
|
||||
|
||||
if (namedGroupPossession == null || namedGroupCredentials == null) {
|
||||
if (namedGroupPossession == null) {
|
||||
throw context.conContext.fatal(Alert.HANDSHAKE_FAILURE,
|
||||
"No sufficient ECDHE/XDH key agreement " +
|
||||
"parameters negotiated");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue