Skip to content

Commit f7e3fac

Browse files
author
John Luo
committed
Update SslProtocols to use system defaults
1 parent a0827ac commit f7e3fac

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Servers/Kestrel/test/InMemory.FunctionalTests/HttpsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public async Task DoesNotThrowObjectDisposedExceptionOnConnectionAbort()
203203
using (var sslStream = new SslStream(connection.Stream, true, (sender, certificate, chain, errors) => true))
204204
{
205205
await sslStream.AuthenticateAsClientAsync("127.0.0.1", clientCertificates: null,
206-
enabledSslProtocols: SslProtocols.Tls11 | SslProtocols.Tls12,
206+
enabledSslProtocols: SslProtocols.None,
207207
checkCertificateRevocation: false);
208208

209209
var request = Encoding.ASCII.GetBytes("GET / HTTP/1.1\r\nHost:\r\n\r\n");
@@ -279,7 +279,7 @@ public async Task DoesNotThrowObjectDisposedExceptionOnEmptyConnection()
279279
using (var sslStream = new SslStream(connection.Stream, true, (sender, certificate, chain, errors) => true))
280280
{
281281
await sslStream.AuthenticateAsClientAsync("127.0.0.1", clientCertificates: null,
282-
enabledSslProtocols: SslProtocols.Tls11 | SslProtocols.Tls12,
282+
enabledSslProtocols: SslProtocols.None,
283283
checkCertificateRevocation: false);
284284
}
285285
}

src/Servers/Kestrel/test/InMemory.FunctionalTests/TestTransport/InMemoryHttpClientSlim.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private static async Task<Stream> GetStream(Stream rawStream, Uri requestUri, bo
124124
validateCertificate ? null : (RemoteCertificateValidationCallback)((a, b, c, d) => true));
125125

126126
await sslStream.AuthenticateAsClientAsync(requestUri.Host, clientCertificates: null,
127-
enabledSslProtocols: SslProtocols.Tls11 | SslProtocols.Tls12,
127+
enabledSslProtocols: SslProtocols.None,
128128
checkCertificateRevocation: validateCertificate).ConfigureAwait(false);
129129
return sslStream;
130130
}

src/Testing/src/HttpClientSlim.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private static async Task<Stream> GetStream(Uri requestUri, bool validateCertifi
153153
validateCertificate ? null : (RemoteCertificateValidationCallback)((a, b, c, d) => true));
154154

155155
await sslStream.AuthenticateAsClientAsync(requestUri.Host, clientCertificates: null,
156-
enabledSslProtocols: SslProtocols.Tls11 | SslProtocols.Tls12,
156+
enabledSslProtocols: SslProtocols.None,
157157
checkCertificateRevocation: validateCertificate).ConfigureAwait(false);
158158
return sslStream;
159159
}

0 commit comments

Comments
 (0)