diff options
Diffstat (limited to 'debian/patches/50_fix_ftbfs_gnutls_3.dpatch')
-rw-r--r-- | debian/patches/50_fix_ftbfs_gnutls_3.dpatch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/50_fix_ftbfs_gnutls_3.dpatch b/debian/patches/50_fix_ftbfs_gnutls_3.dpatch new file mode 100644 index 0000000..052d469 --- /dev/null +++ b/debian/patches/50_fix_ftbfs_gnutls_3.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 50_fix_ftbfs_gnutls_3.dpatch by Dimitri John Ledkov <xnox@debian.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix FTBFS with gnutls 3 + +@DPATCH@ +diff --git a/src/tls.c b/src/tls.c +index 42cb66d..48abdef 100644 +--- a/src/tls.c ++++ b/src/tls.c +@@ -294,7 +294,11 @@ start_ssl_server (NET_STREAM sd_client, const char *cafile, const char *cert, + static void + verify_certificate (gnutls_session session) + { +- int status = gnutls_certificate_verify_peers (session); ++ int status=0; ++ if (gnutls_certificate_verify_peers2 (session, &status) < 0) ++ { ++ return; ++ } + + if (status == GNUTLS_E_NO_CERTIFICATE_FOUND) + { |