glib-networking: update for newer gnutls
This commit is contained in:
parent
a60ef94954
commit
18149967b4
@ -1 +1,2 @@
|
||||
c10e51571d03c10111a37bcd21fbf777 glib-networking-2.28.7.tar.bz2
|
||||
68b150313e3aefef489f4bace0279688 gnutls3-API.patch
|
||||
|
@ -2,16 +2,19 @@
|
||||
# URL: http://git.gnome.org/browse/glib-networking/
|
||||
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
||||
# Packager: Danny Rawlins, monster dot romster at gmail dot com
|
||||
# Depends on: gnutls intltool
|
||||
# Depends on: gnutls intltool libgcrypt
|
||||
|
||||
name=glib-networking
|
||||
version=2.28.7
|
||||
release=1
|
||||
source=(http://ftp.gnome.org/pub/GNOME/sources/$name/${version%.*}/$name-$version.tar.bz2)
|
||||
release=2
|
||||
source=(http://ftp.gnome.org/pub/GNOME/sources/$name/${version%.*}/$name-$version.tar.bz2
|
||||
gnutls3-API.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
patch -p 0 -i $SRC/gnutls3-API.patch
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-static \
|
||||
|
17
glib-networking/gnutls3-API.patch
Normal file
17
glib-networking/gnutls3-API.patch
Normal file
@ -0,0 +1,17 @@
|
||||
http://projects.archlinux.org/svntogit/packages.git/tree/glib-networking/repos/extra-i686/glib-networking-2.29.9-port-gnutls3-API.patch
|
||||
--- tls/gnutls/gtlsconnection-gnutls.c
|
||||
+++ tls/gnutls/gtlsconnection-gnutls.c 2011-08-04 00:40:33.194189789 +0200
|
||||
@@ -860,9 +860,10 @@
|
||||
|
||||
if (peer_certificate)
|
||||
{
|
||||
- int status;
|
||||
+ int verify_ret;
|
||||
+ unsigned int status;
|
||||
|
||||
- status = gnutls_certificate_verify_peers (gnutls->priv->session);
|
||||
+ verify_ret = gnutls_certificate_verify_peers2 (gnutls->priv->session, &status);
|
||||
peer_certificate_errors = g_tls_certificate_gnutls_convert_flags (status);
|
||||
if (peer_certificate_errors)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user