No key data exported by gpgme_op_export_keys()
Dmitry Antipov
dantipov at cloudlinux.com
Thu Apr 15 16:30:12 CEST 2021
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?
$ gcc -Wall -O2 $(pkg-config --cflags gpgme) -g t-gpgme-import.c -o t-gpgme-import $(pkg-config --libs gpgme)
$ ./t-gpgme-import RPM-GPG-KEY-test
1 key(s) found
read 4443 bytes of key(s) data:
-----BEGIN PGP PUBLIC KEY BLOCK-----
...actual data follows...
-----END PGP PUBLIC KEY BLOCK-----
$ ./t-gpgme-import RPM-GPG-KEY-fedora-33-primary
1 key(s) found
read 0 bytes of key(s) data:
???
Observed on gnupg2-2.2.27 + gpgme-1.15.1, if that matters.
Thanks,
Dmitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-gpgme-import.c
Type: text/x-csrc
Size: 1690 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20210415/2b0bc47f/attachment.c>
-------------- next part --------------
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGBcTc4BEADF7NC6a5RPC0m6s6OXS4CEkkK6EKna7Vm9+dmSMWWuonZWQGH3
VG3Kd8GDymFHAAO8zBfm49XEt1qKi2tXghnsXKQVo4fj/vHCcGzzd3D62SFqkOr0
Q0DlNoNZGzht94ihmm095hegOLoQfyuFQ6wyn8ZK1Mg0dCgWwY5tq834FjMyeWJN
bweiQ+n/JvmOnM7ETO3p3vCXTPWdr/9i64CGbvnVDqhyl77TFj9GCPIvikKgePtq
Y0h9Rvh8F9jabzxE+vHNcLRQWjAqhs90gZK0ag78dXiPSt/lVmQ40GtScRqk8zgZ
csGfVqVOELUAVXbNOq1pBK36K5eNMrwHzPFNggIpxA2V2ccigfblghe7DnbqypxD
uXkf46lmAJBmPhBlH2O6dY61U6VGKA5RdULhrLvmAOfDhxLhXYHuAkcgbPSP0Udu
z3ECgaE+enaiJAPYIzEMBd4e4j8VxQ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