[Python-modules-team] Bug#764034: python-gnutls: GnuTLS OpenPGP functions not in gnutls.library.functions

Teddy Hogeborn teddy at recompile.se
Sun Oct 5 00:40:24 UTC 2014


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnutls-library-functions-openpgp.patch
Type: text/x-diff
Size: 388 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20141005/853e6a6e/attachment.patch>


More information about the Python-modules-team mailing list