Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

search for a public key on a keyserver with GPGME

Tags:

c

gnupg

gpgme

Today I started a new thread on gnupg mailing list, Search keys on a keyserver with GPGME. Basically I use GPGME as an interface to use GnuPG in my app, but I don't know how I can use GPGME functions to search for a key on a keyserver.

Any idea?

like image 722
josecampos Avatar asked Oct 21 '22 22:10

josecampos


1 Answers

Ok, I found the answer for this problem. Using gpgme_op_conf_load, gpgme_conf_arg_new, gpgme_conf_opt_change and gpgme_op_conf_save it is possible to set a new preference, in this case the keyserver url.

-- Cheer, José

like image 54
josecampos Avatar answered Oct 24 '22 18:10

josecampos