diff options
author | Justus Winter <[email protected]> | 2017-05-31 12:24:04 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-05-31 15:38:21 +0000 |
commit | 02af509dfc2b893720aa0c7b380fd7736b2bafd0 (patch) | |
tree | f45cb571a9de6f34077caa8aa424edfc224d4b3e /g10/misc.c | |
parent | sm: Simplify code. (diff) | |
download | gnupg-02af509dfc2b893720aa0c7b380fd7736b2bafd0.tar.gz gnupg-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 <[email protected]>
Diffstat (limited to 'g10/misc.c')
-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 { |