mirror of
git://git.gnupg.org/gnupg.git
synced 2024-09-21 15:01:41 +02:00
gpg: Fix compliance computation.
* g10/misc.c (gnupg_pk_is_compliant): Compare against CO_RFC2440, not
RFC2440 which is actually a predicate.
Fixes-commit: fe0b37e123
Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
f9cb15b385
commit
02af509dfc
@ -784,7 +784,7 @@ gnupg_pk_is_compliant (int compliance, PKT_public_key *pk,
|
|||||||
else if (algotype == is_elg_sign)
|
else if (algotype == is_elg_sign)
|
||||||
{
|
{
|
||||||
/* An Elgamal signing key is only RFC-2440 compliant. */
|
/* An Elgamal signing key is only RFC-2440 compliant. */
|
||||||
result = (compliance == RFC2440);
|
result = (compliance == CO_RFC2440);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user