summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-08-01 12:21:37 -0400
committerMike Gilbert <floppym@gentoo.org>2021-08-01 12:21:37 -0400
commit27f2beec2a9bf4e328b1b19fb8790e26e1d6c1c7 (patch)
tree334c28341f4b9802f1ee14ac145745714024ccd1 /net-misc
parentnet-wireless/airspy: bump (diff)
downloadgentoo-27f2beec2a9bf4e328b1b19fb8790e26e1d6c1c7.tar.gz
gentoo-27f2beec2a9bf4e328b1b19fb8790e26e1d6c1c7.tar.bz2
gentoo-27f2beec2a9bf4e328b1b19fb8790e26e1d6c1c7.zip
net-misc/freerdp: another openssl-3.0 fix
Closes: https://bugs.gentoo.org/805893 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/freerdp/files/freerdp-2-openssl-3.0.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-misc/freerdp/files/freerdp-2-openssl-3.0.patch b/net-misc/freerdp/files/freerdp-2-openssl-3.0.patch
index 74b9d4061309..e4662751e5ce 100644
--- a/net-misc/freerdp/files/freerdp-2-openssl-3.0.patch
+++ b/net-misc/freerdp/files/freerdp-2-openssl-3.0.patch
@@ -36,3 +36,26 @@ index 3a859039034..03b23af43ac 100644
WLog_INFO(TAG, "Openssl fips mode ENabled!");
else
{
+From e59acc13c8f9b522a15fd586e643f04af1a79d9a Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Sun, 1 Aug 2021 12:14:43 -0400
+Subject: [PATCH] winpr: avoid calling FIPS_mode() with OpenSSL 3.0
+
+Fixes: 26bf2816c3e0daeaf524c47cf0fcda8ae13b65ad
+---
+ winpr/libwinpr/utils/ssl.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/winpr/libwinpr/utils/ssl.c b/winpr/libwinpr/utils/ssl.c
+index 03b23af43ac..74ef156e7b0 100644
+--- a/winpr/libwinpr/utils/ssl.c
++++ b/winpr/libwinpr/utils/ssl.c
+@@ -364,6 +364,8 @@ BOOL winpr_FIPSMode(void)
+ {
+ #if (OPENSSL_VERSION_NUMBER < 0x10001000L) || defined(LIBRESSL_VERSION_NUMBER)
+ return FALSE;
++#elif defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
++ return (EVP_default_properties_is_fips_enabled(NULL) == 1);
+ #else
+ return (FIPS_mode() == 1);
+ #endif