Skip Menu |

This queue is for tickets about the GnuPG CPAN distribution.

Report information
The Basics
Id: 85041
Status: new
Priority: 0/
Queue: GnuPG

People
Owner: Nobody in particular
Requestors: dkg [...] fifthhorseman.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: verify() chokes when using "trust-model always"
Date: Sat, 04 May 2013 04:03:27 -0400
To: bug-GnuPG [...] rt.cpan.org
From: Daniel Kahn Gillmor <dkg [...] fifthhorseman.net>
forwarding from http://bugs.debian.org/706745 Version: 0.19-1 When using "--trust-model always" arguments to gpg, no TRUST_* status lines are emitted (stderr always gets "gpg: WARNING: Using untrusted key!" under this --trust-model). As a result, verify() from perl's GnuPG module chokes with: Use of uninitialized value $cmd in pattern match (m//) at /usr/share/perl5/GnuPG.pm line 674, <GEN1> line 3. protocol error: expected TRUST* at /usr/share/perl5/GnuPG.pm line 159 GnuPG::abort_gnupg('GnuPG=HASH(0xfd2c00)', 'protocol error: expected TRUST*') called at /usr/share/perl5/GnuPG.pm line 674 GnuPG::check_sig('GnuPG=HASH(0xfd2c00)') called at /usr/share/perl5/GnuPG.pm line 707 GnuPG::verify('GnuPG=HASH(0xfd2c00)', 'signature', 'test.txt.asc', 'file', 'test.txt') called at ./vfy.pl line 15 Rather than choking, I think it should acknowledge that there is no trust information available. Regards, --dkg -- System Information: Debian Release: 7.0 APT prefers testing APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.8-trunk-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libgnupg-perl depends on: ii gnupg 1.4.12-7.1 ii perl 5.14.2-21