commit 2f2b72d63b773009a01159d4941348f5017b4742
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Tue Sep 18 15:51:24 2018 +0200

    - rel 5; fix openssl 1.1.1 build

 libimobiledevice.spec |  4 +++-
 openssl.patch         | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/libimobiledevice.spec b/libimobiledevice.spec
index b44cf2b..df19d8b 100644
--- a/libimobiledevice.spec
+++ b/libimobiledevice.spec
@@ -14,13 +14,14 @@ Summary(pl.UTF-8):  Biblioteka do łączenia się z 
urządzeniami mobilnymi
 Name:          libimobiledevice
 # 1.2.x is stable
 Version:       1.2.0
-Release:       4
+Release:       5
 License:       LGPL v2+
 Group:         Libraries
 #Source0Download: http://www.libimobiledevice.org/
 Source0:       
http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
 # Source0-md5: 8757900ba7bbe2ef5f54342415d0223e
 Patch0:                %{name}-cython.patch
+Patch1:                openssl.patch
 URL:           http://www.libimobiledevice.org/
 BuildRequires: autoconf >= 2.64
 BuildRequires: automake
@@ -113,6 +114,7 @@ Wiązania libimobiledevice dla Pythona.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/openssl.patch b/openssl.patch
new file mode 100644
index 0000000..a1f1221
--- /dev/null
+++ b/openssl.patch
@@ -0,0 +1,11 @@
+--- libimobiledevice-1.2.0/src/idevice.c~      2015-01-28 02:10:32.000000000 
+0100
++++ libimobiledevice-1.2.0/src/idevice.c       2018-09-18 15:46:45.405574489 
+0200
+@@ -678,7 +678,7 @@ LIBIMOBILEDEVICE_API idevice_error_t ide
+       }
+       BIO_set_fd(ssl_bio, (int)(long)connection->data, BIO_NOCLOSE);
+ 
+-      SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv3_method());
++      SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv23_method());
+       if (ssl_ctx == NULL) {
+               debug_info("ERROR: Could not create SSL context.");
+               BIO_free(ssl_bio);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libimobiledevice.git/commitdiff/2f2b72d63b773009a01159d4941348f5017b4742

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

Reply via email to