commit 8e55e9dd077113a7c0cb55962bba97a4de277027
Author: Jan Rękorajski <[email protected]>
Date:   Wed Sep 29 23:06:23 2021 +0200

    - fix building with openssl 3.0.0, rel 2

 freerdp2.spec  |  4 +++-
 openssl3.patch | 31 +++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletion(-)
---
diff --git a/freerdp2.spec b/freerdp2.spec
index 56e5a80..d40b956 100644
--- a/freerdp2.spec
+++ b/freerdp2.spec
@@ -37,7 +37,7 @@ Summary:      Remote Desktop Protocol client
 Summary(pl.UTF-8):     Klient protokołu RDP
 Name:          freerdp2
 Version:       2.4.0
-Release:       1
+Release:       2
 License:       Apache v2.0
 Group:         Applications/Communications
 Source0:       https://pub.freerdp.com/releases/freerdp-%{version}.tar.gz
@@ -45,6 +45,7 @@ Source0:      
https://pub.freerdp.com/releases/freerdp-%{version}.tar.gz
 Patch0:                freerdp-opt.patch
 Patch1:                freerdp-gsm.patch
 Patch2:                docbook-xsl.patch
+Patch3:                openssl3.patch
 URL:           http://www.freerdp.com/
 %{?with_directfb:BuildRequires:        DirectFB-devel}
 %{?with_opencl:BuildRequires:  OpenCL-devel}
@@ -195,6 +196,7 @@ wykorzystujących biblioteki FreeRDP 2.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 cat << EOF > xfreerdp.desktop
 [Desktop Entry]
diff --git a/openssl3.patch b/openssl3.patch
new file mode 100644
index 0000000..d0992ec
--- /dev/null
+++ b/openssl3.patch
@@ -0,0 +1,31 @@
+--- freerdp-2.4.0/winpr/libwinpr/utils/ssl.c.orig      2021-07-27 
11:58:27.000000000 +0200
++++ freerdp-2.4.0/winpr/libwinpr/utils/ssl.c   2021-09-29 23:00:16.142585681 
+0200
+@@ -32,6 +32,7 @@
+ 
+ #include <openssl/ssl.h>
+ #include <openssl/err.h>
++#include <openssl/evp.h>
+ 
+ #include "../log.h"
+ #define TAG WINPR_TAG("utils.ssl")
+@@ -244,9 +245,9 @@
+ #else
+               WLog_DBG(TAG, "Ensuring openssl fips mode is ENabled");
+ 
+-              if (FIPS_mode() != 1)
++              if (EVP_default_properties_is_fips_enabled(NULL) != 1)
+               {
+-                      if (FIPS_mode_set(1))
++                      if (EVP_default_properties_enable_fips(NULL, 1))
+                               WLog_INFO(TAG, "Openssl fips mode ENabled!");
+                       else
+                       {
+@@ -358,7 +358,7 @@
+ #if (OPENSSL_VERSION_NUMBER < 0x10001000L) || defined(LIBRESSL_VERSION_NUMBER)
+       return FALSE;
+ #else
+-      return (FIPS_mode() == 1);
++      return (EVP_default_properties_is_fips_enabled(NULL) == 1);
+ #endif
+ }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/freerdp2.git/commitdiff/8e55e9dd077113a7c0cb55962bba97a4de277027

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to