[gpgme] How to list all keys with secret keys
Florian Lindner
mailinglists at xgm.de
Thu Apr 17 23:39:02 CEST 2003
Hello,
when I start a key listing like that:
gpgme_op_keylist_start(CTX, NULL, 0);
I get two keys, my one and one other public key, that's correct.
But when I check if the key has a secret key is says 0:
gpgme_key_get_ulong_attr(m_key, GPGME_ATTR_IS_SECRET, 0, 0);
But this, on the same key says my UserID to which I've a secrect key:
gpgme_key_get_string_attr(m_key, GPGME_ATTR_USERID, 0, index);
When I start the listing like that:
gpgme_op_keylist_start(CTX, NULL, 0);
It delivers one key, with the same UserID but IS_SECRET says 1.
Why? I thought it is the same key?
Thx,
Florian
More information about the Gnupg-devel
mailing list