Skip to content

Commit ffa362d

Browse files
Only use opt-out policy if supported
1 parent 8acd66a commit ffa362d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http-clients/aws-crt-client/src/main/java/software/amazon/awssdk/http/crt/internal/AwsCrtConfigurationUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public static SocketOptions buildSocketOptions(TcpKeepAliveConfiguration tcpKeep
5454
public static TlsCipherPreference resolveCipherPreference(Boolean postQuantumTlsEnabled) {
5555
// As of of v0.39.3, aws-crt-java prefers PQ by default, so only return the pre-PQ-default policy
5656
// below if the caller explicitly disables PQ by passing in false.
57-
if (Boolean.FALSE.equals(postQuantumTlsEnabled)) {
57+
if (Boolean.FALSE.equals(postQuantumTlsEnabled)
58+
&& TlsCipherPreference.TLS_CIPHER_PREF_TLSv1_0_2023.isSupported()) {
5859
return TlsCipherPreference.TLS_CIPHER_PREF_TLSv1_0_2023;
5960
}
6061
return TlsCipherPreference.TLS_CIPHER_SYSTEM_DEFAULT;

0 commit comments

Comments
 (0)