changeset 12574:7550ace1ed5e

8167472: Chrome interop regression with JDK-8148516 Reviewed-by: weijun
author xuelei
date Tue, 11 Oct 2016 09:11:34 +0000
parents cac681fb5bd1
children a58fca2f8a5d
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	Thu Oct 13 15:35:48 2016 +0100
+++ 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;