mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8284694: Avoid evaluating SSLAlgorithmConstraints twice
Reviewed-by: redestad, xuelei, coffeys
This commit is contained in:
parent
cb16e41089
commit
d8446b4f60
7 changed files with 429 additions and 45 deletions
|
@ -216,10 +216,10 @@ final class X509TrustManagerImpl extends X509ExtendedTrustManager
|
|||
String[] localSupportedSignAlgs =
|
||||
extSession.getLocalSupportedSignatureAlgorithms();
|
||||
|
||||
constraints = new SSLAlgorithmConstraints(
|
||||
constraints = SSLAlgorithmConstraints.forSocket(
|
||||
sslSocket, localSupportedSignAlgs, false);
|
||||
} else {
|
||||
constraints = new SSLAlgorithmConstraints(sslSocket, false);
|
||||
constraints = SSLAlgorithmConstraints.forSocket(sslSocket, false);
|
||||
}
|
||||
|
||||
// Grab any stapled OCSP responses for use in validation
|
||||
|
@ -270,10 +270,10 @@ final class X509TrustManagerImpl extends X509ExtendedTrustManager
|
|||
String[] localSupportedSignAlgs =
|
||||
extSession.getLocalSupportedSignatureAlgorithms();
|
||||
|
||||
constraints = new SSLAlgorithmConstraints(
|
||||
constraints = SSLAlgorithmConstraints.forEngine(
|
||||
engine, localSupportedSignAlgs, false);
|
||||
} else {
|
||||
constraints = new SSLAlgorithmConstraints(engine, false);
|
||||
constraints = SSLAlgorithmConstraints.forEngine(engine, false);
|
||||
}
|
||||
|
||||
// Grab any stapled OCSP responses for use in validation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue