void-packages/srcpkgs/freerdp/patches/libressl.patch
2018-01-11 13:05:19 +01:00

20 lines
723 B
Diff

--- winpr/libwinpr/utils/ssl.c.orig 2017-11-28 15:26:30.000000000 +0100
+++ winpr/libwinpr/utils/ssl.c 2018-01-10 10:28:17.187304871 +0100
@@ -279,7 +279,7 @@
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_FIPSMode(void)
{
-#if (OPENSSL_VERSION_NUMBER < 0x10001000L)
+#if (OPENSSL_VERSION_NUMBER < 0x10001000L) || defined(LIBRESSL_VERSION_NUMBER)
return FALSE;
#else
return (FIPS_mode() == 1);