[packages/glib-openssl] - fix building with openssl 3.0.0, rel 2
baggins
baggins at pld-linux.org
Sun Oct 24 22:07:58 CEST 2021
commit 752d0d675b3212632e90ef0c016fa6f30dec274a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Oct 24 22:07:34 2021 +0200
- fix building with openssl 3.0.0, rel 2
glib-openssl.spec | 4 +++-
openssl.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/glib-openssl.spec b/glib-openssl.spec
index af6d866..2ff3cd9 100644
--- a/glib-openssl.spec
+++ b/glib-openssl.spec
@@ -2,11 +2,12 @@ Summary: Network extensions for GLib using OpenSSL
Summary(pl.UTF-8): Rozszerzenia sieciowe biblioteki GLib wykorzystujące OpenSSL
Name: glib-openssl
Version: 2.50.8
-Release: 1
+Release: 2
License: LGPL v2+
Group: Libraries
Source0: http://ftp.gnome.org/pub/GNOME/sources/glib-openssl/2.50/%{name}-%{version}.tar.xz
# Source0-md5: db7ae779bbd45c2043186fdba08764b0
+Patch0: openssl.patch
URL: https://github.com/GNOME/glib-openssl
BuildRequires: autoconf >= 2.65
BuildRequires: automake >= 1:1.11
@@ -29,6 +30,7 @@ Rozszerzenia sieciowe biblioteki GLib wykorzystujące OpenSSL.
%prep
%setup -q
+%patch0 -p1
%build
# rebuild for as-needed to work
diff --git a/openssl.patch b/openssl.patch
new file mode 100644
index 0000000..d7505b4
--- /dev/null
+++ b/openssl.patch
@@ -0,0 +1,11 @@
+--- glib-openssl-2.50.8/tls/openssl/gtlsclientconnection-openssl.c~ 2018-02-26 11:17:16.000000000 +0100
++++ glib-openssl-2.50.8/tls/openssl/gtlsclientconnection-openssl.c 2021-10-24 22:03:25.003716657 +0200
+@@ -509,7 +509,7 @@
+ X509_VERIFY_PARAM *param;
+
+ param = X509_VERIFY_PARAM_new ();
+- X509_VERIFY_PARAM_set1_host (param, hostname);
++ X509_VERIFY_PARAM_set1_host (param, hostname, strlen(hostname));
+ SSL_CTX_set1_param (priv->ssl_ctx, param);
+ X509_VERIFY_PARAM_free (param);
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/glib-openssl.git/commitdiff/752d0d675b3212632e90ef0c016fa6f30dec274a
More information about the pld-cvs-commit
mailing list