Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 06e6a36

Browse files
wfurtstephentoub
authored andcommitted
make sure crypto_Init is done before calling ssl_init (#25297)
1 parent 5c9b95d commit 06e6a36

File tree

1 file changed

+3
-0
lines changed
  • src/Native/Unix/System.Security.Cryptography.Native

1 file changed

+3
-0
lines changed

src/Native/Unix/System.Security.Cryptography.Native/pal_ssl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ static_assert(PAL_SSL_ERROR_WANT_WRITE == SSL_ERROR_WANT_WRITE, "");
1414
static_assert(PAL_SSL_ERROR_SYSCALL == SSL_ERROR_SYSCALL, "");
1515
static_assert(PAL_SSL_ERROR_ZERO_RETURN == SSL_ERROR_ZERO_RETURN, "");
1616

17+
extern "C" int32_t CryptoNative_EnsureOpenSslInitialized();
18+
1719
extern "C" void CryptoNative_EnsureLibSslInitialized()
1820
{
21+
CryptoNative_EnsureOpenSslInitialized();
1922
SSL_library_init();
2023
SSL_load_error_strings();
2124
}

0 commit comments

Comments
 (0)