gpg: Report STATUS_NO_SECKEY when it is examined.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 16 Jan 2019 01:27:21 +0000 (10:27 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 16 Jan 2019 01:27:21 +0000 (10:27 +0900)
commitdafffa95b2317bcb80fff1fd6d2bc7b4e6b1e206
treed24572d613e8439f814600cfff9ddb2de284d83e
parent6c000d4b78b836686e5a2789cc88a41e465e4400
gpg: Report STATUS_NO_SECKEY when it is examined.

* g10/packet.h (struct pubkey_enc_list): Add result.
* g10/mainproc.c (proc_pubkey_enc): Initialize ->result.
(proc_encrypted): Report STATUS_NO_SECKEY status.
* g10/pubkey-enc.c (get_session_key): Set ->result.

--

This change is for GPGME compatibility.  Before this change,
gpgme/tests/json/t-json failed with t-decrypt-verify.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/mainproc.c
g10/packet.h
g10/pubkey-enc.c