[BUG/Gpgme] checking message with a revoked key
Albrecht Dreß
albrecht.dress at arcor.de
Thu May 20 17:24:00 CEST 2004
Hi,
I ran into an odd behaviour of gpgme when checking a message which has
been signed with a revoked key (actually this result comes from a message
sent to this list recently, Message-ID: <Pine.
BSD.4.58L0.0405181614250.56703 at erfrnepu.fhfcvpvbhf.bet>). The results part
of the gpgme (version 0.4.7, gpg 1.2.4) debug log looks like
~~~snip here~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
posix-io.c:374: select OK [ r33 ]
posix-io.c:71: fd 33: about to read 1024 bytes
posix-io.c:78: fd 33: got 66 bytes
fd 33: got `[GNUPG:] SIG_ID hFXuvoA9V980KHYIpmzdzXhcbM4 2004-05-18
1084912207
'
posix-io.c:328: gpgme:select on [ r33 r37 ]
posix-io.c:374: select OK [ r33 ]
posix-io.c:71: fd 33: about to read 1024 bytes
posix-io.c:78: fd 33: got 71 bytes
fd 33: got `[GNUPG:] REVKEYSIG 9C280BBF3D7D41E3 Atom Smasher
<atom at suspicious.org>
'
posix-io.c:328: gpgme:select on [ r33 r37 ]
posix-io.c:374: select OK [ r33 ]
posix-io.c:71: fd 33: about to read 1024 bytes
posix-io.c:78: fd 33: got 136 bytes
fd 33: got `[GNUPG:] VALIDSIG 3EBE281030AE601D54B24A909C280BBF3D7D41E3
2004-05-18 1084912207 0 4 0 17 2 01
3EBE281030AE601D54B24A909C280BBF3D7D41E3
'
posix-io.c:134: closing fd 33
wait.c:159: setting fd 33 (item=0x10d7fe08) done
posix-io.c:134: closing fd 37
wait.c:159: setting fd 37 (item=0x10d7ff50) done
~~~snip here~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From this, gpgme returns 0x7000096 == source gpgme, error "invalid crypto
engine". This is grossly misleading, the result should be something like
"key revoked" (like key expired, see GPG_ERR_KEY_EXPIRED; IMHO such an
error should be added to gpg-error).
Furthermore, it would be great if I could still get the output stream
(input was '2440 encoded) from gpgme to display the human-readable message
content alongside with the more meaningful error message.
Any ideas?
Cheers, Albrecht.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Albrecht Dreß - Johanna-Kirchner-Straße 13 - D-53123 Bonn (Germany)
Phone (+49) 228 6199571 - mailto:albrecht.dress at arcor.de
_________________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/attachments/20040520/6e81ab89/attachment.bin
More information about the Gnupg-devel
mailing list