Mercurial > hg > openjdk > jdk8u > jdk
changeset 12819:1c28a0748a11 jdk8u161-b05
8184673: Fix compatibility issue in AlgorithmChecker for 3rd party JCE providers
Reviewed-by: ascarpino, mullan
author | clanger |
---|---|
date | Mon, 17 Jul 2017 11:47:12 +0200 |
parents | 9ab9cd4f23a5 |
children | 812e091864d5 |
files | src/share/classes/sun/security/provider/certpath/AlgorithmChecker.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/sun/security/provider/certpath/AlgorithmChecker.java Fri Sep 08 10:41:02 2017 -0700 +++ b/src/share/classes/sun/security/provider/certpath/AlgorithmChecker.java Mon Jul 17 11:47:12 2017 +0200 @@ -270,7 +270,7 @@ AlgorithmParameters currSigAlgParams = algorithmId.getParameters(); PublicKey currPubKey = cert.getPublicKey(); - String currSigAlg = ((X509Certificate)cert).getSigAlgName(); + String currSigAlg = x509Cert.getSigAlgName(); // Check the signature algorithm and parameters against constraints. if (!constraints.permits(SIGNATURE_PRIMITIVE_SET, currSigAlg,