File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -821,9 +821,11 @@ public static string GetProtocolWarning(this SslProtocols protocol)
821821#pragma warning disable SYSLIB0039 // Type or member is obsolete: TLS 1.0 & 1.1 are deprecated
822822#endif
823823#pragma warning disable CS0618 // Type or member is obsolete : SSL is deprecated
824+ #pragma warning disable CA5397 // Do not use deprecated SslProtocols values
824825#pragma warning disable CA5398 // Do not use deprecated SslProtocols values
825826 if ( ( protocol & ( SslProtocols . Ssl2 | SslProtocols . Ssl3 | SslProtocols . Tls | SslProtocols . Tls11 ) ) != SslProtocols . None )
826827#pragma warning restore CA5398 // Do not use deprecated SslProtocols values
828+ #pragma warning restore CA5397 // Do not use deprecated SslProtocols values
827829#pragma warning restore CS0618 // Type or member is obsolete : SSL is deprecated
828830#if NET8_0_OR_GREATER
829831#pragma warning restore SYSLIB0039 // Type or member is obsolete: SSL and TLS 1.0 & 1.1 is deprecated
You can’t perform that action at this time.
0 commit comments