Merge pull request #4298 from myfreeweb/libressl-fix-fips
Fix LibreSSL build
This commit is contained in:
commit
22c71c0034
@ -279,7 +279,7 @@ static BOOL CALLBACK _winpr_openssl_initialize(PINIT_ONCE once, PVOID param, PVO
|
||||
|
||||
if (flags & WINPR_SSL_INIT_ENABLE_FIPS)
|
||||
{
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10001000L)
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10001000L) || defined(LIBRESSL_VERSION_NUMBER)
|
||||
WLog_ERR(TAG, "Openssl fips mode ENable not available on openssl versions less than 1.0.1!");
|
||||
#else
|
||||
WLog_DBG(TAG, "Ensuring openssl fips mode is ENabled");
|
||||
@ -348,7 +348,7 @@ BOOL winpr_CleanupSSL(DWORD flags)
|
||||
|
||||
BOOL winpr_FIPSMode(void)
|
||||
{
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10001000L)
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10001000L) || defined(LIBRESSL_VERSION_NUMBER)
|
||||
return FALSE;
|
||||
#else
|
||||
return (FIPS_mode() == 1);
|
||||
|
Loading…
Reference in New Issue
Block a user