core: New function gpgme_op_adduid.
authorWerner Koch <wk@gnupg.org>
Wed, 14 Sep 2016 09:40:34 +0000 (11:40 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 14 Sep 2016 09:40:34 +0000 (11:40 +0200)
commit3210f3e4725afc5ee2810b9a1361918ec9c42ca4
tree742cdfee9596708ce838d88ca47236162821817e
parentcc353701b0fde4c811ddc1e9a91b852dfe9f4e06
core: New function gpgme_op_adduid.

* src/genkey.c: Replace most error codes GPG_ERR_INV_VALUE by
GPG_ERR_INV_ARG.
(struct op_data_t): Add field UIDMODE.
(genkey_status_handler): Use UIDMODE.
(adduid_start): New.
(gpgme_op_adduid_start, gpgme_op_adduid): New.
* src/gpgme.def, src/libgpgme.vers: Add them.
* tests/run-genkey.c: Add option --adduid.

Signed-off-by: Werner Koch <wk@gnupg.org>
NEWS
src/engine-gpg.c
src/genkey.c
src/gpgme.def
src/gpgme.h.in
src/libgpgme.vers
tests/run-genkey.c