diff options
Diffstat (limited to 'csharp/src/IceSSL/SSLEngine.cs')
-rw-r--r-- | csharp/src/IceSSL/SSLEngine.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/csharp/src/IceSSL/SSLEngine.cs b/csharp/src/IceSSL/SSLEngine.cs index 34b381ac3ca..15fdbac1ceb 100644 --- a/csharp/src/IceSSL/SSLEngine.cs +++ b/csharp/src/IceSSL/SSLEngine.cs @@ -75,7 +75,9 @@ namespace IceSSL _protocols = 0; foreach(int v in Enum.GetValues(typeof(SslProtocols))) { - if(v > (int)SslProtocols.Ssl3 && v != (int)SslProtocols.Default) +#pragma warning disable CS0618 // Type or member is obsolete + if (v > (int)SslProtocols.Ssl3 && v != (int)SslProtocols.Default) +#pragma warning restore CS0618 // Type or member is obsolete { _protocols |= (SslProtocols)v; } @@ -637,9 +639,11 @@ namespace IceSSL private SslProtocols parseProtocols(string[] arr) { +#pragma warning disable CS0618 // Type or member is obsolete SslProtocols result = SslProtocols.Default; +#pragma warning restore CS0618 // Type or member is obsolete - if(arr.Length > 0) + if (arr.Length > 0) { result = 0; for(int i = 0; i < arr.Length; ++i) |