aboutsummaryrefslogtreecommitdiffstats
path: root/g10/packet.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-01-16 01:27:21 +0000
committerNIIBE Yutaka <[email protected]>2019-01-16 01:27:21 +0000
commitdafffa95b2317bcb80fff1fd6d2bc7b4e6b1e206 (patch)
treed24572d613e8439f814600cfff9ddb2de284d83e /g10/packet.h
parentdoc: Mark keyserver-options timeout and http-proxy as obsolete. (diff)
downloadgnupg-dafffa95b2317bcb80fff1fd6d2bc7b4e6b1e206.tar.gz
gnupg-dafffa95b2317bcb80fff1fd6d2bc7b4e6b1e206.zip
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 <[email protected]>
Diffstat (limited to 'g10/packet.h')
-rw-r--r--g10/packet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/packet.h b/g10/packet.h
index 1ec12d64b..78a57bacf 100644
--- a/g10/packet.h
+++ b/g10/packet.h
@@ -137,6 +137,7 @@ struct pubkey_enc_list
struct pubkey_enc_list *next;
u32 keyid[2];
int pubkey_algo;
+ int result;
gcry_mpi_t data[PUBKEY_MAX_NENC];
};