From 02af509dfc2b893720aa0c7b380fd7736b2bafd0 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 31 May 2017 14:24:04 +0200 Subject: [PATCH] gpg: Fix compliance computation. * g10/misc.c (gnupg_pk_is_compliant): Compare against CO_RFC2440, not RFC2440 which is actually a predicate. Fixes-commit: fe0b37e123ded51cc5f4cb5e3547fdfbce37a43e Signed-off-by: Justus Winter --- g10/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/misc.c b/g10/misc.c index abae6c960..bdd27cf49 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -784,7 +784,7 @@ gnupg_pk_is_compliant (int compliance, PKT_public_key *pk, else if (algotype == is_elg_sign) { /* An Elgamal signing key is only RFC-2440 compliant. */ - result = (compliance == RFC2440); + result = (compliance == CO_RFC2440); } else {