No key data exported by gpgme_op_export_keys()
Ingo Klöcker
kloecker at kde.org
Thu Apr 15 18:59:48 CEST 2021
On Donnerstag, 15. April 2021 16:30:12 CEST Dmitry Antipov via Gnupg-devel
wrote:
> Hello,
>
> could someone please explain why an attached test program (loosely based on
> gpgme tests) is able to echo back my test key but refuses to zero output
> bytes for Fedora 33 primary one?
I'm getting
1 key(s) found
read 0 bytes of key(s) data:
for both files. Are both keys in your actual public key ring?
My guess is that the export needs the actual key data and that's not part of
the result of the key list. The result of the key list only tells
gpgme_op_export_keys() which keys you want to export. gpgme_op_export_keys()
then calls gpg to retrieve the actual public key data. Obviously, this only
works for keys that are in your public key ring.
Try running your program with
GPGME_DEBUG=<debug level>
with one of the debug levels in src/debug.h
Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20210415/04350bf6/attachment.sig>
More information about the Gnupg-devel
mailing list