提交 25e9b327 编写于 作者: X xuelei

8167472: Chrome interop regression with JDK-8148516

Reviewed-by: weijun
上级 64744bac
...@@ -280,7 +280,7 @@ final class SupportedEllipticCurvesExtension extends HelloExtension { ...@@ -280,7 +280,7 @@ final class SupportedEllipticCurvesExtension extends HelloExtension {
private static int getPreferredCurve(int[] curves, private static int getPreferredCurve(int[] curves,
AlgorithmConstraints constraints) { AlgorithmConstraints constraints) {
for (int curveId : curves) { for (int curveId : curves) {
if (constraints.permits( if (isSupported(curveId) && constraints.permits(
EnumSet.of(CryptoPrimitive.KEY_AGREEMENT), EnumSet.of(CryptoPrimitive.KEY_AGREEMENT),
"EC", idToParams.get(curveId))) { "EC", idToParams.get(curveId))) {
return curveId; return curveId;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册