src/java.base/share/classes/sun/security/ssl/CertificateVerify.java
changeset 57718 a93b7b28f644
parent 54417 f87041131515
child 58951 d6e682e8fcc3
equal deleted inserted replaced
57716:bfcdcd00e4fb 57718:a93b7b28f644
   562             super(context);
   562             super(context);
   563 
   563 
   564             // This happens in client side only.
   564             // This happens in client side only.
   565             ClientHandshakeContext chc = (ClientHandshakeContext)context;
   565             ClientHandshakeContext chc = (ClientHandshakeContext)context;
   566             this.signatureScheme = SignatureScheme.getPreferableAlgorithm(
   566             this.signatureScheme = SignatureScheme.getPreferableAlgorithm(
       
   567                     chc.algorithmConstraints,
   567                     chc.peerRequestedSignatureSchemes,
   568                     chc.peerRequestedSignatureSchemes,
   568                     x509Possession,
   569                     x509Possession,
   569                     chc.negotiatedProtocol);
   570                     chc.negotiatedProtocol);
   570             if (signatureScheme == null) {
   571             if (signatureScheme == null) {
   571                 // Unlikely, the credentials generator should have
   572                 // Unlikely, the credentials generator should have
   863         T13CertificateVerifyMessage(HandshakeContext context,
   864         T13CertificateVerifyMessage(HandshakeContext context,
   864                 X509Possession x509Possession) throws IOException {
   865                 X509Possession x509Possession) throws IOException {
   865             super(context);
   866             super(context);
   866 
   867 
   867             this.signatureScheme = SignatureScheme.getPreferableAlgorithm(
   868             this.signatureScheme = SignatureScheme.getPreferableAlgorithm(
       
   869                     context.algorithmConstraints,
   868                     context.peerRequestedSignatureSchemes,
   870                     context.peerRequestedSignatureSchemes,
   869                     x509Possession,
   871                     x509Possession,
   870                     context.negotiatedProtocol);
   872                     context.negotiatedProtocol);
   871             if (signatureScheme == null) {
   873             if (signatureScheme == null) {
   872                 // Unlikely, the credentials generator should have
   874                 // Unlikely, the credentials generator should have