No key data exported by gpgme_op_export_keys()
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
> 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?
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
with one of the debug levels in src/debug.h
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 195 bytes
Desc: This is a digitally signed message part.
More information about the Gnupg-devel