java-1_8_0-openjdk/bsc1211968.patch

16 lines
864 B
Diff
Raw Normal View History

--- openjdk/jdk/src/share/classes/sun/security/ssl/DHKeyExchange.java 2023-11-14 07:18:11.483931806 +0100
+++ openjdk/jdk/src/share/classes/sun/security/ssl/DHKeyExchange.java 2023-11-14 07:20:21.018138340 +0100
@@ -253,11 +253,7 @@
static {
String property = GetPropertyAction.privilegedGetProperty(
"jdk.tls.ephemeralDHKeySize");
- if (property == null || property.isEmpty()) {
- useLegacyEphemeralDHKeys = false;
- useSmartEphemeralDHKeys = false;
- customizedDHKeySize = -1;
- } else if ("matched".equals(property)) {
+ if (property == null || property.isEmpty() || "matched".equals(property)) {
useLegacyEphemeralDHKeys = false;
useSmartEphemeralDHKeys = true;
customizedDHKeySize = -1;