Skip to content

Commit

Permalink
Fix build (dotnet#36862)
Browse files Browse the repository at this point in the history
  • Loading branch information
krwq authored and ViktorHofer committed Apr 14, 2019
1 parent 0aa6ccc commit 822da31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Native/Unix/System.Security.Cryptography.Native/pal_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ int32_t CryptoNative_SetCiphers(SSL_CTX* ctx, const char* cipherList, const char

const char* CryptoNative_GetOpenSslCipherSuiteName(SSL* ssl, int32_t cipherSuite, int32_t* isTls12OrLower)
{
#if HAVE_OPENSSL_SET_CIPHERSUITES
unsigned char cs[2];
const SSL_CIPHER* cipher;
const char* ret;
Expand Down Expand Up @@ -413,6 +414,12 @@ const char* CryptoNative_GetOpenSslCipherSuiteName(SSL* ssl, int32_t cipherSuite
}

return ret;
#else
(void)ssl;
(void)cipherSuite;
*isTls12OrLower = 0;
return NULL;
#endif
}

int32_t CryptoNative_Tls13Supported()
Expand Down

0 comments on commit 822da31

Please sign in to comment.