Return dedicated error code for all subkeys expired or revoked.
authorWerner Koch <wk@gnupg.org>
Tue, 17 May 2016 18:21:01 +0000 (20:21 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 17 May 2016 18:23:28 +0000 (20:23 +0200)
commit315fb73d4a774e2c699ac1804f5377559b4d0027
tree4194a0bc9390b89686ce42d7e39f6412d225f10b
parent9b36ebf37a3b889c955ba68038bd5b3d9c5cde4e
Return dedicated error code for all subkeys expired or revoked.

* src/gpgme.h.in (GPGME_STATUS_KEY_CONSIDERED): New.
(GPGME_SIGSUM_TOFU_CONFLICT): New.
* src/status-table.c (KEY_CONSIDERED): New.
* src/op-support.c (_gpgme_parse_inv_recp): Add argc KC_FPR and
KC_FLAGS.  Use calloc.  Detect all expired or revoked subkeys.
(_gpgme_parse_key_considered): New.
* src/sign.c (op_data_t): Add fields KC_FPR and KC_FLAGS.
(release_op_data): Free KC_FPR.
(_gpgme_sign_status_handler): Handle STATUS_KEY_CONSIDERED.
* src/encrypt.c (op_data_t): Add fields KC_FPR and KC_FLAGS.
(release_op_data): Free KC_FPR.
(_gpgme_encrypt_status_handler): Handle STATUS_KEY_CONSIDERED.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/encrypt.c
src/gpgme.h.in
src/op-support.c
src/ops.h
src/sign.c
src/status-table.c