[gnutls-dev] [PATCH] Fixing OpenPGP keyring import (again)

Ludovic Courtès ludo at chbouib.org
Mon May 14 17:54:20 CEST 2007


Hi,

Timo Schulz <twoaday at gmx.net> writes:

> To make sure I understand you. You try to check than an
> armored key file is correctly formatted and contains
> valid openpgp keys?

The test case I posted, `keyring.c', only checks whether a raw keyring
can be imported.  It would be nice to augment the test so that it checks
whether ASCII-armored keyrings can be imported as well (i.e., passing
`GNUTLS_OPENPGP_FMT_BASE64' to `gnutls_openpgp_keyring_import ()').

To that end, we need an ASCII-armored keyring.  I was able to create one
with GPG and to load it with `gnutls_openpgp_keyring_import ()', but I
did not managed to get GPG to show me its contents, until Werner Koch
showed how to do it.

The issue now is that "gpg --export -a < ./keyring.gpg > ./keyring.asc"
includes my own keyring (from `~/.gnupg/pubring.gpg') into its output.

Thanks,
Ludovic.




More information about the Gnutls-dev mailing list