Skip to content

Commit a22bb98

Browse files
authored
Merge pull request #1439 from Unity-Technologies/unity-bugfix-1338432
Adjust Unity TLS minimum and maximum versions (case 1338432)
2 parents 2c6942c + 9a064d9 commit a22bb98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mcs/class/System/Mono.UnityTls/UnityTlsConversions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static UnityTls.unitytls_protocol GetMinProtocol (SslProtocols protocols)
2323
return UnityTls.unitytls_protocol.UNITYTLS_PROTOCOL_TLS_1_1;
2424
if (protocols.HasFlag (SslProtocols.Tls12))
2525
return UnityTls.unitytls_protocol.UNITYTLS_PROTOCOL_TLS_1_2;
26-
return UnityTls.unitytls_protocol.UNITYTLS_PROTOCOL_TLS_1_2; // Behavior as in AppleTlsContext
26+
return UnityTls.unitytls_protocol.UNITYTLS_PROTOCOL_TLS_1_0; // Use mbed tls min default
2727
}
2828

2929
public static UnityTls.unitytls_protocol GetMaxProtocol (SslProtocols protocols)
@@ -34,7 +34,7 @@ public static UnityTls.unitytls_protocol GetMaxProtocol (SslProtocols protocols)
3434
return UnityTls.unitytls_protocol.UNITYTLS_PROTOCOL_TLS_1_1;
3535
if (protocols.HasFlag (SslProtocols.Tls))
3636
return UnityTls.unitytls_protocol.UNITYTLS_PROTOCOL_TLS_1_0;
37-
return UnityTls.unitytls_protocol.UNITYTLS_PROTOCOL_TLS_1_0; // Behavior as in AppleTlsContext
37+
return UnityTls.unitytls_protocol.UNITYTLS_PROTOCOL_TLS_1_2; // Use mbed tls max default
3838
}
3939

4040
public static TlsProtocols ConvertProtocolVersion(UnityTls.unitytls_protocol protocol)

0 commit comments

Comments
 (0)