changeset 41473:bf73db8c61e0

8167472: Chrome interop regression with JDK-8148516 Reviewed-by: weijun
author xuelei
date Tue, 11 Oct 2016 09:11:34 +0000
parents ca054ba21d38
children eaa1c85db7d8
files jdk/src/java.base/share/classes/sun/security/ssl/EllipticCurvesExtension.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;