# HG changeset patch # User apetcher # Date 1534517065 14400 # Node ID 9ce739c1ae203fe338edd135a5052d713d3fb52e # Parent 6f9f7f4100c7e96feaa0d943f4a1c8bfde2e4f42 Minor fix to named group selection. diff -r 6f9f7f4100c7 -r 9ce739c1ae20 src/java.base/share/classes/sun/security/ssl/SupportedGroupsExtension.java --- a/src/java.base/share/classes/sun/security/ssl/SupportedGroupsExtension.java Fri Aug 17 10:35:01 2018 -0400 +++ b/src/java.base/share/classes/sun/security/ssl/SupportedGroupsExtension.java Fri Aug 17 10:44:25 2018 -0400 @@ -805,7 +805,7 @@ } // check whether the group is supported by the underlying providers - private static boolean isAvailableGroup(NamedGroup namedGroup) { + public static boolean isAvailableGroup(NamedGroup namedGroup) { Optional ngf = namedGroup.getFunctions(); if (ngf.isEmpty()) { diff -r 6f9f7f4100c7 -r 9ce739c1ae20 src/java.base/share/classes/sun/security/ssl/X509Authentication.java --- a/src/java.base/share/classes/sun/security/ssl/X509Authentication.java Fri Aug 17 10:35:01 2018 -0400 +++ b/src/java.base/share/classes/sun/security/ssl/X509Authentication.java Fri Aug 17 10:44:25 2018 -0400 @@ -290,7 +290,7 @@ ((ECPublicKey)serverPublicKey).getParams(); NamedGroup namedGroup = NamedGroup.valueOf(params); if ((namedGroup == null) || - (!SupportedGroups.isSupported(namedGroup))) { + (!SupportedGroups.isAvailableGroup(namedGroup))) { if (SSLLogger.isOn && SSLLogger.isOn("ssl")) { SSLLogger.warning(