how to import a .pkr file with multiple keys using gpgme?

Hans-Christoph Steiner hans at
Fri Mar 21 21:49:29 CET 2014

If I have a .pkr file with multiple keys in it, I can import it from the
command line using: `gpg --import public-keys.pkr`.  I cannot find a way to do
this with gpgme.  When I using gpgme_op_import(), it complains of a bad key

result->imports == NULL, result->imported = 0, result->not_imported = 0
com.freiheit.gnupg.GnuPGException: 53: Unusable public key

I'm using gpgme 1.4.3 and gpg2 2.0.17.


PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81

More information about the Gnupg-devel mailing list