From bcd6042846b25b233d259ce03dff9023cc4987ef Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 10 Mar 2022 12:35:03 -0800 Subject: [PATCH] Remove OpenSSL error queue checking after initialization (#65501) Co-authored-by: Radek Zikmund --- .../System.Net.Security.Native/Interop.Initialization.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libraries/Common/src/Interop/Unix/System.Net.Security.Native/Interop.Initialization.cs b/src/libraries/Common/src/Interop/Unix/System.Net.Security.Native/Interop.Initialization.cs index 39a0d67f2021c..cf55076dfbb45 100644 --- a/src/libraries/Common/src/Interop/Unix/System.Net.Security.Native/Interop.Initialization.cs +++ b/src/libraries/Common/src/Interop/Unix/System.Net.Security.Native/Interop.Initialization.cs @@ -24,11 +24,6 @@ static SslInitializer() //Call ssl specific initializer Ssl.EnsureLibSslInitialized(); - if (Interop.Crypto.ErrPeekLastError() != 0) - { - // It is going to be wrapped in a type load exception but will have the error information - throw Interop.Crypto.CreateOpenSslCryptographicException(); - } } #endif