mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
gpg: Don't consider unknown keys as non-compliant while decrypting.
* g10/mainproc.c (proc_encrypted): Change compliance logic. -- For the description of the proplem see https://dev.gnupg.org/T6205#163306 GnuPG-bug-id: 6205
This commit is contained in:
parent
993820c315
commit
1b2ac21c4c
@ -753,14 +753,14 @@ proc_encrypted (CTX c, PACKET *pkt)
|
||||
compliant = 0;
|
||||
}
|
||||
|
||||
/* Check that every public key used to encrypt the session key
|
||||
/* Check that every known public key used to encrypt the session key
|
||||
* is compliant. */
|
||||
for (i = c->pkenc_list; i && compliant; i = i->next)
|
||||
{
|
||||
memset (pk, 0, sizeof *pk);
|
||||
pk->pubkey_algo = i->pubkey_algo;
|
||||
if (get_pubkey (c->ctrl, pk, i->keyid) != 0
|
||||
|| ! gnupg_pk_is_compliant (CO_DE_VS, pk->pubkey_algo, 0,
|
||||
if (!get_pubkey (c->ctrl, pk, i->keyid)
|
||||
&& !gnupg_pk_is_compliant (CO_DE_VS, pk->pubkey_algo, 0,
|
||||
pk->pkey, nbits_from_pk (pk), NULL))
|
||||
compliant = 0;
|
||||
release_public_key_parts (pk);
|
||||
|
Loading…
x
Reference in New Issue
Block a user