[Pkg-gnupg-commit] [gnupg2] 27/185: gpg: Fix compliance computation.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Aug 7 11:55:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 02af509dfc2b893720aa0c7b380fd7736b2bafd0
Author: Justus Winter <justus at g10code.com>
Date:   Wed May 31 14:24:04 2017 +0200

    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 <justus at g10code.com>
---
 g10/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/g10/misc.c b/g10/misc.c
index abae6c9..bdd27cf 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
     {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list