core: New function gpgme_op_createsubkey.
authorWerner Koch <wk@gnupg.org>
Wed, 14 Sep 2016 07:51:16 +0000 (09:51 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 14 Sep 2016 07:51:16 +0000 (09:51 +0200)
commitcc353701b0fde4c811ddc1e9a91b852dfe9f4e06
tree73404f8a95c81599e873ef27e6edb454ddc1a52a
parent51f9acbca935c5287d9a28205037b0923e9a65f5
core: New function gpgme_op_createsubkey.

* src/genkey.c (createsubkey_start): New.
(gpgme_op_createsubkey_start, gpgme_op_createsubkey): New.
* src/gpgme.def, src/libgpgme.vers: Add them.
* src/engine-gpg.c (gpg_createkey): Factor some code out to ...
(gpg_add_algo_usage_expire): new.
(gpg_addkey): Implement.
* tests/run-genkey.c: Add option --addkey.

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