1 |
commit: 27f2beec2a9bf4e328b1b19fb8790e26e1d6c1c7 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 1 16:21:37 2021 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 1 16:21:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27f2beec |
7 |
|
8 |
net-misc/freerdp: another openssl-3.0 fix |
9 |
|
10 |
Closes: https://bugs.gentoo.org/805893 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
net-misc/freerdp/files/freerdp-2-openssl-3.0.patch | 23 ++++++++++++++++++++++ |
14 |
1 file changed, 23 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/freerdp/files/freerdp-2-openssl-3.0.patch b/net-misc/freerdp/files/freerdp-2-openssl-3.0.patch |
17 |
index 74b9d406130..e4662751e5c 100644 |
18 |
--- a/net-misc/freerdp/files/freerdp-2-openssl-3.0.patch |
19 |
+++ b/net-misc/freerdp/files/freerdp-2-openssl-3.0.patch |
20 |
@@ -36,3 +36,26 @@ index 3a859039034..03b23af43ac 100644 |
21 |
WLog_INFO(TAG, "Openssl fips mode ENabled!"); |
22 |
else |
23 |
{ |
24 |
+From e59acc13c8f9b522a15fd586e643f04af1a79d9a Mon Sep 17 00:00:00 2001 |
25 |
+From: Mike Gilbert <floppym@g.o> |
26 |
+Date: Sun, 1 Aug 2021 12:14:43 -0400 |
27 |
+Subject: [PATCH] winpr: avoid calling FIPS_mode() with OpenSSL 3.0 |
28 |
+ |
29 |
+Fixes: 26bf2816c3e0daeaf524c47cf0fcda8ae13b65ad |
30 |
+--- |
31 |
+ winpr/libwinpr/utils/ssl.c | 2 ++ |
32 |
+ 1 file changed, 2 insertions(+) |
33 |
+ |
34 |
+diff --git a/winpr/libwinpr/utils/ssl.c b/winpr/libwinpr/utils/ssl.c |
35 |
+index 03b23af43ac..74ef156e7b0 100644 |
36 |
+--- a/winpr/libwinpr/utils/ssl.c |
37 |
++++ b/winpr/libwinpr/utils/ssl.c |
38 |
+@@ -364,6 +364,8 @@ BOOL winpr_FIPSMode(void) |
39 |
+ { |
40 |
+ #if (OPENSSL_VERSION_NUMBER < 0x10001000L) || defined(LIBRESSL_VERSION_NUMBER) |
41 |
+ return FALSE; |
42 |
++#elif defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3) |
43 |
++ return (EVP_default_properties_is_fips_enabled(NULL) == 1); |
44 |
+ #else |
45 |
+ return (FIPS_mode() == 1); |
46 |
+ #endif |