8167472: Chrome interop regression with JDK-8148516
authorxuelei
Tue, 11 Oct 2016 09:11:34 +0000
changeset 41473 bf73db8c61e0
parent 41472 ca054ba21d38
child 41474 eaa1c85db7d8
8167472: Chrome interop regression with JDK-8148516 Reviewed-by: weijun
jdk/src/java.base/share/classes/sun/security/ssl/EllipticCurvesExtension.java
--- a/jdk/src/java.base/share/classes/sun/security/ssl/EllipticCurvesExtension.java	Tue Oct 11 09:50:04 2016 +0200
+++ b/jdk/src/java.base/share/classes/sun/security/ssl/EllipticCurvesExtension.java	Tue Oct 11 09:11:34 2016 +0000
@@ -282,7 +282,7 @@
     private static int getPreferredCurve(int[] curves,
                 AlgorithmConstraints constraints) {
         for (int curveId : curves) {
-            if (constraints.permits(
+            if (isSupported(curveId) && constraints.permits(
                     EnumSet.of(CryptoPrimitive.KEY_AGREEMENT),
                                 "EC", idToParams.get(curveId))) {
                 return curveId;