From: Jan Rękorajski Date: Sun, 24 Oct 2021 20:07:34 +0000 (+0200) Subject: - fix building with openssl 3.0.0, rel 2 X-Git-Tag: auto/th/glib-openssl-2.50.8-2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=752d0d675b3212632e90ef0c016fa6f30dec274a;p=packages%2Fglib-openssl.git - fix building with openssl 3.0.0, rel 2 --- 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); + }