mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
gpg: Avoid to emit a compliance mode line if libgcrypt is non-compliant.
* g10/encrypt.c (check_encryption_compliance): Check gcrypt compliance before emitting an ENCRYPTION_COMPLIANCE_MODE status. -- GnuPG-bug-id: 6221
This commit is contained in:
parent
d7a0df4478
commit
07c6743148
@ -535,8 +535,13 @@ check_encryption_compliance (DEK *dek, pk_list_t pk_list)
|
|||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
|
|
||||||
compliant = gnupg_cipher_is_compliant (CO_DE_VS, dek->algo,
|
/* From here on we only test for CO_DE_VS - if we ever want to
|
||||||
GCRY_CIPHER_MODE_CFB);
|
* return other compliance mode values we need to change this to
|
||||||
|
* loop over all those values. */
|
||||||
|
compliant = gnupg_gcrypt_is_compliant (CO_DE_VS);
|
||||||
|
|
||||||
|
if (!gnupg_cipher_is_compliant (CO_DE_VS, dek->algo, GCRY_CIPHER_MODE_CFB))
|
||||||
|
compliant = 0;
|
||||||
|
|
||||||
for (pkr = pk_list; pkr; pkr = pkr->next)
|
for (pkr = pk_list; pkr; pkr = pkr->next)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user