From 3c90faa761b6654d00e97f19767d1099702e78e5 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Wed, 15 Jan 2003 02:52:57 +0000 Subject: [PATCH] * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error for signature digest conflict. BAD_SIGN implies that a signature was checked and we may try and print out a user ID for a key that doesn't exist. --- g10/ChangeLog | 7 +++++++ g10/sig-check.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/g10/ChangeLog b/g10/ChangeLog index d8713cd50..ab3d3da07 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,10 @@ +2003-01-14 David Shaw + + * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error + for signature digest conflict. BAD_SIGN implies that a signature + was checked and we may try and print out a user ID for a key that + doesn't exist. + 2003-01-14 Werner Koch * g10.c (add_group): Fixed group parsing to allow more than one diff --git a/g10/sig-check.c b/g10/sig-check.c index 41b4a4c69..a000d69bf 100644 --- a/g10/sig-check.c +++ b/g10/sig-check.c @@ -71,7 +71,7 @@ signature_check2( PKT_signature *sig, MD_HANDLE digest, if(!md_algo_present(digest,sig->digest_algo)) { log_info(_("WARNING: signature digest conflict in message\n")); - rc=G10ERR_BAD_SIGN; + rc=G10ERR_GENERAL; } else if( get_pubkey( pk, sig->keyid ) ) rc = G10ERR_NO_PUBKEY;