8242141: New System Properties to configure the TLS signature schemes

Reviewed-by: ascarpino, jnimeh, mullan
This commit is contained in:
Xue-Lei Andrew Fan 2020-04-22 10:51:16 -07:00
parent 5efa545d48
commit 72446bb0dc
12 changed files with 233 additions and 6 deletions

View file

@ -100,6 +100,7 @@ final class CertSignAlgsExtension {
if (chc.localSupportedSignAlgs == null) {
chc.localSupportedSignAlgs =
SignatureScheme.getSupportedAlgorithms(
chc.sslConfig,
chc.algorithmConstraints, chc.activeProtocols);
}
@ -188,6 +189,7 @@ final class CertSignAlgsExtension {
// update the context
List<SignatureScheme> schemes =
SignatureScheme.getSupportedAlgorithms(
shc.sslConfig,
shc.algorithmConstraints, shc.negotiatedProtocol,
spec.signatureSchemes);
shc.peerRequestedCertSignSchemes = schemes;
@ -240,6 +242,7 @@ final class CertSignAlgsExtension {
// Produce the extension.
List<SignatureScheme> sigAlgs =
SignatureScheme.getSupportedAlgorithms(
shc.sslConfig,
shc.algorithmConstraints,
List.of(shc.negotiatedProtocol));
@ -326,6 +329,7 @@ final class CertSignAlgsExtension {
// update the context
List<SignatureScheme> schemes =
SignatureScheme.getSupportedAlgorithms(
chc.sslConfig,
chc.algorithmConstraints, chc.negotiatedProtocol,
spec.signatureSchemes);
chc.peerRequestedCertSignSchemes = schemes;