5

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?

josecampos
  • 851
  • 1
  • 8
  • 25

1 Answers1

3

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é

josecampos
  • 851
  • 1
  • 8
  • 25
  • FFR: These options are undocumented but exemplified in [`./tests/gpg/t-gpgconf.c`](http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=blob;f=tests/gpg/t-gpgconf.c) – Jeroen Ooms Sep 10 '15 at 22:31