]> git.pld-linux.org Git - packages/glib-openssl.git/commitdiff
- fix building with openssl 3.0.0, rel 2 master auto/th/glib-openssl-2.50.8-2
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 24 Oct 2021 20:07:34 +0000 (22:07 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 24 Oct 2021 20:07:34 +0000 (22:07 +0200)
glib-openssl.spec
openssl.patch [new file with mode: 0644]

index af6d866ef42fb239372f0b7820b28b55c995e49f..2ff3cd94f469007078f850c1c4bf55abff2b28ab 100644 (file)
@@ -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 (file)
index 0000000..d7505b4
--- /dev/null
@@ -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);
+     }
This page took 0.06717 seconds and 4 git commands to generate.