From b97434fbf087f3176daf39699ff579d38d265317 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 6 Aug 2019 11:19:59 +0900 Subject: [PATCH] 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 --- tests/json/t-decrypt-verify.out.json | 5 ----- 1 file changed, 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": {