Blame SOURCES/pr1834-rh1022017.patch
|
|
c4ba7e |
diff --git a/src/share/classes/sun/security/ssl/SupportedEllipticCurvesExtension.java b/src/share/classes/sun/security/ssl/SupportedEllipticCurvesExtension.java
|
|
|
c4ba7e |
--- openjdk/jdk/src/share/classes/sun/security/ssl/SupportedEllipticCurvesExtension.java
|
|
|
c4ba7e |
+++ openjdk/jdk/src/share/classes/sun/security/ssl/SupportedEllipticCurvesExtension.java
|
|
|
c4ba7e |
@@ -160,20 +160,10 @@
|
|
|
c4ba7e |
}
|
|
|
c4ba7e |
}
|
|
|
c4ba7e |
} else { // default curves
|
|
|
c4ba7e |
- int[] ids;
|
|
|
c4ba7e |
- if (requireFips) {
|
|
|
c4ba7e |
- ids = new int[] {
|
|
|
c4ba7e |
- // only NIST curves in FIPS mode
|
|
|
c4ba7e |
- 23, 24, 25, 9, 10, 11, 12, 13, 14,
|
|
|
c4ba7e |
- };
|
|
|
c4ba7e |
- } else {
|
|
|
c4ba7e |
- ids = new int[] {
|
|
|
c4ba7e |
- // NIST curves first
|
|
|
c4ba7e |
- 23, 24, 25, 9, 10, 11, 12, 13, 14,
|
|
|
c4ba7e |
- // non-NIST curves
|
|
|
c4ba7e |
- 22,
|
|
|
c4ba7e |
- };
|
|
|
c4ba7e |
- }
|
|
|
c4ba7e |
+ int[] ids = new int[] {
|
|
|
c4ba7e |
+ // NSS currently only supports these three NIST curves
|
|
|
c4ba7e |
+ 23, 24, 25
|
|
|
c4ba7e |
+ };
|
|
|
2b939e |
|
|
|
c4ba7e |
idList = new ArrayList<>(ids.length);
|
|
|
c4ba7e |
for (int curveId : ids) {
|