Reacting to review enabling tests
authordrawaes <seawardtim@gmail.com>
Thu, 26 Oct 2017 18:00:59 +0000 (19:00 +0100)
committerdrawaes <seawardtim@gmail.com>
Thu, 26 Oct 2017 20:07:46 +0000 (21:07 +0100)
Commit migrated from https://github.com/dotnet/corefx/commit/968ff23df8c555502223633244efcf4a574cbb97

src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.OpenSsl.cs
src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Ssl.cs
src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamAlpnTests.cs

index da26895..6e5ecb0 100644 (file)
@@ -96,6 +96,7 @@ internal static partial class Interop
                     //update the client CA list 
                     UpdateCAListFromRootStore(innerContext);
                 }
+
                 GCHandle alpnHandle = default;
                 try
                 {
@@ -144,6 +145,7 @@ internal static partial class Interop
                                 certHandle.DangerousRelease();
                         }
                     }
+
                     context.AlpnHandle = alpnHandle;
                 }
                 catch
index 019f68f..0e18a46 100644 (file)
@@ -280,7 +280,7 @@ namespace Microsoft.Win32.SafeHandles
                 _writeBio?.Dispose();
             }
 
-            if(_alpnHandle.IsAllocated)
+            if (_alpnHandle.IsAllocated)
             {
                 _alpnHandle.Free();
             }
index f32743f..68bffb8 100644 (file)
@@ -163,7 +163,7 @@ namespace System.Net.Security.Tests
             {
                 // Works on linux distros with openssl 1.0.2, CI machines Ubuntu14.04 and Debian 87 don't have openssl 1.0.2
                 // Works on Windows OSes > 7.0
-                bool featureWorks = (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && !(PlatformDetection.IsUbuntu1404 || PlatformDetection.IsDebian)) ||
+                bool featureWorks = (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && !(PlatformDetection.IsUbuntu1404 || PlatformDetection.IsDebian8)) ||
                                     (PlatformDetection.IsWindows && !PlatformDetection.IsWindows7);
 
                 yield return new object[] { new List<SslApplicationProtocol> { SslApplicationProtocol.Http11, SslApplicationProtocol.Http2 }, new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 }, featureWorks ? SslApplicationProtocol.Http2 : default };