Check for OpenSSL availability for OpenSsl asymmetric primitives
authorKevin Jones <kevin@vcsjones.com>
Mon, 16 Aug 2021 23:52:08 +0000 (19:52 -0400)
committerGitHub <noreply@github.com>
Mon, 16 Aug 2021 23:52:08 +0000 (16:52 -0700)
commit214443193a83b47170a8bec7ab4247ca745ccc8b
treec4aa2a019c19f9cdbd996cef0fcad31751cb6b0c
parentc0fc818cd41d30e78f284382951c36c8cc804e1e
Check for OpenSSL availability for OpenSsl asymmetric primitives

If you attempt to use any of the *OpenSsl primitives on macOS, this will currently abort the whole process.
This changes them to check for OpenSSL's presence and throw an appropriate exception instead of aborting.

When used as an internal implementation, the aborting behavior remains.
src/libraries/Common/src/System/Security/Cryptography/DSAOpenSsl.cs
src/libraries/Common/src/System/Security/Cryptography/ECDiffieHellmanOpenSsl.cs
src/libraries/Common/src/System/Security/Cryptography/ECDsaOpenSsl.cs
src/libraries/Common/src/System/Security/Cryptography/RSAOpenSsl.cs
src/libraries/System.Security.Cryptography.OpenSsl/src/Resources/Strings.resx
src/libraries/System.Security.Cryptography.OpenSsl/src/System.Security.Cryptography.OpenSsl.csproj
src/libraries/System.Security.Cryptography.OpenSsl/src/System/Security/Cryptography/DSAOpenSsl.cs
src/libraries/System.Security.Cryptography.OpenSsl/src/System/Security/Cryptography/ECDiffieHellmanOpenSsl.cs
src/libraries/System.Security.Cryptography.OpenSsl/src/System/Security/Cryptography/ECDsaOpenSsl.cs
src/libraries/System.Security.Cryptography.OpenSsl/src/System/Security/Cryptography/RSAOpenSsl.cs