summaryrefslogtreecommitdiffstats
path: root/abs/extra/gnome-vfs/gnutls-3.4.0.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-06-08 16:42:28 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-06-08 16:42:28 (GMT)
commit345f315b2a4b9d7f971accf1091f223a33d47fa0 (patch)
treeeed3334aa6f68b52a898a484b5c4158aed4da4cf /abs/extra/gnome-vfs/gnutls-3.4.0.patch
parent13de637f5d23ba04e62b1ee7443394c552c5c88b (diff)
downloadlinhes_pkgbuild-345f315b2a4b9d7f971accf1091f223a33d47fa0.zip
linhes_pkgbuild-345f315b2a4b9d7f971accf1091f223a33d47fa0.tar.gz
linhes_pkgbuild-345f315b2a4b9d7f971accf1091f223a33d47fa0.tar.bz2
gnome-vfs: update to 2.24.4-9
Diffstat (limited to 'abs/extra/gnome-vfs/gnutls-3.4.0.patch')
-rw-r--r--abs/extra/gnome-vfs/gnutls-3.4.0.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/extra/gnome-vfs/gnutls-3.4.0.patch b/abs/extra/gnome-vfs/gnutls-3.4.0.patch
new file mode 100644
index 0000000..78942f0
--- /dev/null
+++ b/abs/extra/gnome-vfs/gnutls-3.4.0.patch
@@ -0,0 +1,38 @@
+diff -uprw gnome-vfs-2.24.4.orig/libgnomevfs/gnome-vfs-ssl.c gnome-vfs-2.24.4/libgnomevfs/gnome-vfs-ssl.c
+--- gnome-vfs-2.24.4.orig/libgnomevfs/gnome-vfs-ssl.c 2010-02-09 14:16:14.000000000 +0200
++++ gnome-vfs-2.24.4/libgnomevfs/gnome-vfs-ssl.c 2015-04-14 00:01:51.272451668 +0300
+@@ -314,21 +314,6 @@ gnome_vfs_ssl_create (GnomeVFSSSL **hand
+ #endif
+ }
+
+-#ifdef HAVE_GNUTLS
+-static const int protocol_priority[] = {GNUTLS_TLS1, GNUTLS_SSL3, 0};
+-static const int cipher_priority[] =
+- {GNUTLS_CIPHER_RIJNDAEL_128_CBC, GNUTLS_CIPHER_3DES_CBC,
+- GNUTLS_CIPHER_RIJNDAEL_256_CBC, GNUTLS_CIPHER_ARCFOUR, 0};
+-static const int comp_priority[] =
+- {GNUTLS_COMP_ZLIB, GNUTLS_COMP_NULL, 0};
+-static const int kx_priority[] =
+- {GNUTLS_KX_DHE_RSA, GNUTLS_KX_RSA, GNUTLS_KX_DHE_DSS, 0};
+-static const int mac_priority[] =
+- {GNUTLS_MAC_SHA, GNUTLS_MAC_MD5, 0};
+-
+-#endif
+-
+-
+ /**
+ * gnome_vfs_ssl_create_from_fd:
+ * @handle_return: pointer to a #GnomeVFSSSL struct, which will
+@@ -437,11 +422,7 @@ gnome_vfs_ssl_create_from_fd (GnomeVFSSS
+ gnutls_transport_set_ptr (ssl->private->tlsstate,
+ GINT_TO_POINTER (fd));
+
+- gnutls_protocol_set_priority (ssl->private->tlsstate, protocol_priority);
+- gnutls_cipher_set_priority (ssl->private->tlsstate, cipher_priority);
+- gnutls_compression_set_priority (ssl->private->tlsstate, comp_priority);
+- gnutls_kx_set_priority (ssl->private->tlsstate, kx_priority);
+- gnutls_mac_set_priority (ssl->private->tlsstate, mac_priority);
++ gnutls_set_default_priority (ssl->private->tlsstate);
+
+ gnutls_cred_set (ssl->private->tlsstate, GNUTLS_CRD_CERTIFICATE,
+ ssl->private->xcred);