Package: python-gnutls Version: 2.0.1-1 Severity: normal Tags: patch upstream
In gnutls/library/functions.py, line 1401, it tries to access the C library function "gnutls_certificate_get_openpgp_key", to determine if the OpenPGP functions are present in the library. (This is a change from the old code for the old GnuTLS library, which tried to access "gnutls_certificate_get_openpgp_keyring" instead, but that function has been removed in the new GnuTLS library, so the change was necessary.) The problem is that the function accessed, called "gnutls_certificate_get_openpgp_key", does not exist, and has never existed in any version of GnuTLS I could find. Therefore, the code in functions.py determines that OpenPGP support is not present and does not import the needed functions from the C library. By reading the following code in functions.py, and comparing with the old version, I am pretty sure that what was actually meant was instead the function "gnutls_certificate_set_openpgp_key". Indeed, when changed to that, the functions in the Python module are present, callable and working. /Teddy Hogeborn -- The Mandos Project http://www.recompile.se/mandos -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'oldstable'), (50, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python-gnutls depends on: ii libgnutls-deb0-28 3.3.8-2 ii python 2.7.8-1 Versions of packages python-gnutls recommends: ii python-twisted-core 14.0.2-2 python-gnutls suggests no packages. -- no debconf information -- debsums errors found: debsums: changed file /usr/lib/python2.7/dist-packages/gnutls/library/functions.py (from python-gnutls package)
--- gnutls/library/functions.py.~1~ 2014-06-26 18:01:34.000000000 +0200 +++ gnutls/library/functions.py 2014-10-05 02:19:39.424176013 +0200 @@ -1398,7 +1398,7 @@ # try: - gnutls_certificate_get_openpgp_key = libgnutls.gnutls_certificate_get_openpgp_key + gnutls_certificate_set_openpgp_key = libgnutls.gnutls_certificate_set_openpgp_key except AttributeError: pass else: