Bug with --list-mode in gpg 1.4.0?

Stéphane Corthésy stephane at sente.ch
Fri Jan 21 11:28:21 CET 2005


Hi,

Using gpg 1.4.0, I encrypted a message with 3 keys - 2 friends' and 
mine (private key in keyring).
Then I list keys used for encryption, but list doesn't show my key, 
though it has been used.

I used the following commands:

gpg --verbose --armor --recipient friend1 --recipient friend2 
--recipient mykey --encrypt test

gpg: ELG-E/AES encrypted for: "x1x1x1x1 friend1"
gpg: ELG-E/AES encrypted for: "x2x2x2x2 friend2"
gpg: ELG-E/AES encrypted for: "x3x3x3x3 me"

gpg --list-only test.asc
gpg: encrypted with 2048-bit ELG-E key, ID x1x1x1x1, created ...
gpg: encrypted with 2048-bit ELG-E key, ID x2x2x2x2, created ...

It misses my key.

Now with that command:
gpg --status-fd 2 --list-only test.asc
[GNUPG:] ENC_TO x1x1x1x1 16 0
[GNUPG:] ENC_TO x2x2x2x2 16 0
[GNUPG:] ENC_TO x3x3x3x3 16 0
gpg: encrypted with 2048-bit ELG-E key, ID x1x1x1x1, created ...
gpg: encrypted with 2048-bit ELG-E key, ID x2x2x2x2, created ...

This proves that my key has been used, but --list-only mode doesn't 
show it if I don't use either --verbose of --status-fd options. Is it 
correct?

Stéphane




More information about the Gnupg-devel mailing list