Skip to content

Commit

Permalink
Fix TlsV1 default in ConscryptProviderBuilder.
Browse files Browse the repository at this point in the history
I noticed it's better to use the platform references here when donwstreaming.

Change-Id: I4c5e3ac8b31b167dc9dc64480f9480966ffd7107
  • Loading branch information
miguelaranda0 committed Dec 19, 2024
1 parent c7aed19 commit 0d127b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions common/src/main/java/org/conscrypt/Conscrypt.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ public static class ProviderBuilder {
private String name = Platform.getDefaultProviderName();
private boolean provideTrustManager = Platform.provideTrustManagerByDefault();
private String defaultTlsProtocol = NativeCrypto.SUPPORTED_PROTOCOL_TLSV1_3;
private boolean deprecatedTlsV1 = true;
private boolean enabledTlsV1 = false;
private boolean deprecatedTlsV1 = Platform.isTlsV1Deprecated();
private boolean enabledTlsV1 = Platform.isTlsV1Supported();

private ProviderBuilder() {}

Expand Down
2 changes: 1 addition & 1 deletion openjdk/src/main/java/org/conscrypt/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ final public class Platform {
private static final Method GET_CURVE_NAME_METHOD;
static boolean DEPRECATED_TLS_V1 = true;
static boolean ENABLED_TLS_V1 = false;
private static boolean FILTERED_TLS_V1 = true;
private static boolean FILTERED_TLS_V1 = false;

static {
NativeCrypto.setTlsV1DeprecationStatus(DEPRECATED_TLS_V1, ENABLED_TLS_V1);
Expand Down

0 comments on commit 0d127b8

Please sign in to comment.