gpgme list secret keys
Matthijs Mohlmann
matthijs at cacholong.nl
Sun Apr 24 22:11:01 CEST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm trying to write a plugin for gaim to get GPG encryption support in
gaim. Now i came across the following. I want the user to choose their
secret key. How can i do this ? I have the following piece of code and
read the documentation several times but it seems impossible (i think i
misread the documentation)
if (!err) {
err = gpgme_op_keylist_start(ctx, NULL, 0);
while (!err) {
uid = key->uids;
subkey = key->subkeys;
printf("%s: %s <%s>\n", subkey->keyid, uid->name, uid->email);
err = gpgme_op_keylist_next(ctx, &key);
}
gpgme_release(ctx);
}
Problem with this code is that i don't have a "key" at that moment
available. So i have to do something else.. but how can i do that ?
I hope you can help me.
Matthijs Mohlmann
PS: i'm off the list so please CC me.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCa/1V2n1ROIkXqbARAlCKAJ9bQlpo1Im1jPmhLNfFjIfx3xPfNACfQcf+
Di+jRJhx6QT8c9jKuwgVqKg=
=XwUN
-----END PGP SIGNATURE-----
More information about the Gnupg-users
mailing list