search for a public key on a keyserver with GPGME

邮差的信 提交于 2020-01-01 12:25:11

问题


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?


回答1:


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é



来源:https://stackoverflow.com/questions/13870240/search-for-a-public-key-on-a-keyserver-with-gpgme

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!