aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-08-06 02:19:59 +0000
committerNIIBE Yutaka <[email protected]>2019-08-06 02:19:59 +0000
commitb97434fbf087f3176daf39699ff579d38d265317 (patch)
tree8caf0fb68af5156cc09d2dbf042847ac16d51f66
parentcore: Fix arg counting in enginge-gpg (diff)
downloadgpgme-b97434fbf087f3176daf39699ff579d38d265317.tar.gz
gpgme-b97434fbf087f3176daf39699ff579d38d265317.zip
json: Fix t-decrypt-verify.out for GnuPG >= 2.3.
* tests/json/t-decrypt-verify.out.json: Remove check with key of 04071FB807287134. -- GnuPG 2.3 changes how public key decryption works; It collects list of PUBKEY_ENC packets and then processes an ENCRYPTED* packet. At the stage of processing an ENCRYPTED* packet, it checks if private keys can decrypt any of PUBKEY_ENC packets. It does not necessarily examine all of PUBKEY_ENC packets. Only when it finds a PUBKEY_ENC packet cannot be decrypted, it reports STATUS_NO_SECKEY with keyid of that packet. GnuPG 2.2 or older tries PUBKEY_ENC packets in order, and the first successful PUBKEY_ENC packet is used. Rest of PUBKEY_ENC packets are not examined, but STATUS_NO_SECKEY with keyid is reported even when there is a valid private key. Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--tests/json/t-decrypt-verify.out.json5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/json/t-decrypt-verify.out.json b/tests/json/t-decrypt-verify.out.json
index fc60327b..4371032d 100644
--- a/tests/json/t-decrypt-verify.out.json
+++ b/tests/json/t-decrypt-verify.out.json
@@ -10,11 +10,6 @@
"pubkey_algo_name": "ELG-E",
"status_string": "Success",
"status_code": 0
- }, {
- "keyid": "04071FB807287134",
- "pubkey_algo_name": "ELG-E",
- "status_string": "No secret key",
- "status_code": 117440529
}]
},
"info": {