Skip to content

Commit dd56165

Browse files
committed
Use isOverrideSet for consistency
- org.bouncycastle.ec.disable_f2m property
1 parent 8f5db23 commit dd56165

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tls/src/main/java/org/bouncycastle/jsse/provider/NamedGroupInfo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsCrypto;
2121
import org.bouncycastle.util.Arrays;
2222
import org.bouncycastle.util.Integers;
23+
import org.bouncycastle.util.Properties;
2324

2425
class NamedGroupInfo
2526
{
@@ -517,7 +518,7 @@ private static Map<Integer, NamedGroupInfo> createIndex(boolean isFipsContext, J
517518

518519
final boolean disableChar2 =
519520
PropertyUtils.getBooleanSystemProperty("org.bouncycastle.jsse.ec.disableChar2", false) ||
520-
PropertyUtils.getBooleanSystemProperty("org.bouncycastle.ec.disable_f2m", false);
521+
Properties.isOverrideSet("org.bouncycastle.ec.disable_f2m");
521522

522523
final boolean disableFFDHE = !PropertyUtils.getBooleanSystemProperty("jsse.enableFFDHE", true);
523524

0 commit comments

Comments
 (0)