diff options
author | Justus Winter <justus@g10code.com> | 2017-05-31 14:24:04 +0200 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2017-05-31 17:38:21 +0200 |
commit | 02af509dfc2b893720aa0c7b380fd7736b2bafd0 (patch) | |
tree | f45cb571a9de6f34077caa8aa424edfc224d4b3e | |
parent | sm: Simplify code. (diff) | |
download | gnupg2-02af509dfc2b893720aa0c7b380fd7736b2bafd0.tar.xz gnupg2-02af509dfc2b893720aa0c7b380fd7736b2bafd0.zip |
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@g10code.com>
-rw-r--r-- | g10/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |