mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +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,15 +753,15 @@ proc_encrypted (CTX c, PACKET *pkt)
|
|||||||
compliant = 0;
|
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. */
|
* is compliant. */
|
||||||
for (i = c->pkenc_list; i && compliant; i = i->next)
|
for (i = c->pkenc_list; i && compliant; i = i->next)
|
||||||
{
|
{
|
||||||
memset (pk, 0, sizeof *pk);
|
memset (pk, 0, sizeof *pk);
|
||||||
pk->pubkey_algo = i->pubkey_algo;
|
pk->pubkey_algo = i->pubkey_algo;
|
||||||
if (get_pubkey (c->ctrl, pk, i->keyid) != 0
|
if (!get_pubkey (c->ctrl, pk, i->keyid)
|
||||||
|| ! gnupg_pk_is_compliant (CO_DE_VS, pk->pubkey_algo, 0,
|
&& !gnupg_pk_is_compliant (CO_DE_VS, pk->pubkey_algo, 0,
|
||||||
pk->pkey, nbits_from_pk (pk), NULL))
|
pk->pkey, nbits_from_pk (pk), NULL))
|
||||||
compliant = 0;
|
compliant = 0;
|
||||||
release_public_key_parts (pk);
|
release_public_key_parts (pk);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user