changeset 12054:368cac4db680

8167472: Chrome interop regression with JDK-8148516 Reviewed-by: weijun
author xuelei
date Tue, 11 Oct 2016 09:11:34 +0000
parents 843bb1caac68
children 494d27357b8c
files src/share/classes/sun/security/ssl/SupportedEllipticCurvesExtension.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/ssl/SupportedEllipticCurvesExtension.java	Tue Oct 11 15:49:37 2016 -0700
+++ b/src/share/classes/sun/security/ssl/SupportedEllipticCurvesExtension.java	Tue Oct 11 09:11:34 2016 +0000
@@ -280,7 +280,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;