Compare commits

..

No commits in common. "1fb5d0c6f5bb8466e58e71502966d5cf36e7ea89" and "2cf72d5cf600bd27a7f114f96e24bdf4451b82d1" have entirely different histories.

4 changed files with 38 additions and 19 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,17 +1,19 @@
Name: glib-networking
Version: 2.62.4
Release: 1
Version: 2.58.0
Release: 6
Summary: Network-related modules for glib
License: LGPLv2+
URL: http://www.gnome.org
Source0: http://download.gnome.org/sources/glib-networking/2.62/glib-networking-%{version}.tar.xz
Source0: http://download.gnome.org/sources/glib-networking/2.58/glib-networking-%{version}.tar.xz
BuildRequires: meson gcc ca-certificates gettext systemd gdb
BuildRequires: pkgconfig(glib-2.0) >= 2.60.0 pkgconfig(gnutls)
Patch0001: handle-new-gnutls-e-certificate-required.patch
BuildRequires: meson gcc ca-certificates gettext systemd
BuildRequires: pkgconfig(glib-2.0) >= 2.55.1 pkgconfig(gnutls) >= 3.3.5
BuildRequires: pkgconfig(gio-2.0) pkgconfig(gsettings-desktop-schemas)
BuildRequires: pkgconfig(libproxy-1.0) pkgconfig(p11-kit-1)
BuildRequires: pkgconfig(libproxy-1.0) >= 0.3.1 pkgconfig(p11-kit-1) >= 0.20
Requires: ca-certificates gsettings-desktop-schemas glib2 >= 2.60.0
Requires: ca-certificates gsettings-desktop-schemas glib2 >= 2.55.1
%description
glib-networking contains the implementations of certain GLib networking features
@ -36,9 +38,6 @@ verify the Usability of the glib-networking package.
%find_lang %{name}
%check
%meson_test
%files -f %{name}.lang
%defattr(-,root,root)
%doc NEWS README
@ -54,15 +53,6 @@ verify the Usability of the glib-networking package.
%{_datadir}/installed-tests
%changelog
* Wed Aug 19 2020 yuboyun <yuboyun@huawei.com> - 2.62.4-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:upgrade to 2.62.4
* Fri Mar 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.58.0-7
- add gdb in buildrequires
* Mon Mar 16 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.58.0-6
- sync handle new gnutls certificate requred patch

View File

@ -0,0 +1,29 @@
From 5f79d76fbc7f52eb677ac9b0353563043deaef71 Mon Sep 17 00:00:00 2001
From: wangxp006 <wangxp006@163.com>
Date: Mon, 16 Mar 2020 16:33:25 +0800
Subject: [PATCH] handle new gnutls e certificate required
---
tls/gnutls/gtlsconnection-gnutls.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index 959fa68..f9d43bc 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -1016,7 +1016,11 @@ end_gnutls_io (GTlsConnectionGnutls *gnutls,
else
return 0;
}
- else if (status == GNUTLS_E_NO_CERTIFICATE_FOUND)
+ else if (status == GNUTLS_E_NO_CERTIFICATE_FOUND
+#ifdef GNUTLS_E_CERTIFICATE_REQUIRED
+ || status == GNUTLS_E_CERTIFICATE_REQUIRED /* Added in GnuTLS 3.6.7 */
+#endif
+ )
{
g_set_error_literal (error, G_TLS_ERROR, G_TLS_ERROR_CERTIFICATE_REQUIRED,
_("TLS connection peer did not send a certificate"));
--
1.8.3.1