From: Werner Koch Date: Thu, 8 Apr 2004 09:53:01 +0000 (+0000) Subject: * verify.c (_gpgme_verify_status_handler): Ignore the error status X-Git-Tag: gpgme-1.2.0@1385~449 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=505ee6022f92ca2429d8c7be0f1ad6dfed20314a;p=gpgme.git * verify.c (_gpgme_verify_status_handler): Ignore the error status if we can't process it. * decrypt-verify.c (decrypt_verify_status_handler): Backed out yesterday's hack. It is not any longer required. --- diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 9213a0b..26c4630 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,10 @@ +2004-04-08 Werner Koch + + * verify.c (_gpgme_verify_status_handler): Ignore the error status + if we can't process it. + * decrypt-verify.c (decrypt_verify_status_handler): Backed out + yesterday's hack. It is not any longer required. + 2004-04-07 Werner Koch * decrypt-verify.c (decrypt_verify_status_handler): Hack to cope diff --git a/trunk/gpgme/decrypt-verify.c b/trunk/gpgme/decrypt-verify.c index 4ce7289..ef7f79b 100644 --- a/trunk/gpgme/decrypt-verify.c +++ b/trunk/gpgme/decrypt-verify.c @@ -36,16 +36,7 @@ decrypt_verify_status_handler (void *priv, gpgme_status_code_t code, if (!err) err = _gpgme_decrypt_status_handler (priv, code, args); if (!err) - { err = _gpgme_verify_status_handler (priv, code, args); - /* The verify status handler might not be in the state to verify - a signature, either because there is no signature or we are - currently processing the encrytion layer, and thus it will - likely return "invalid engine" - we have to ignore it - therefore. */ - if (gpg_err_code (err) == GPG_ERR_INV_ENGINE) - err = 0; - } return err; } diff --git a/trunk/gpgme/decrypt.c b/trunk/gpgme/decrypt.c index 030073f..1d106c1 100644 --- a/trunk/gpgme/decrypt.c +++ b/trunk/gpgme/decrypt.c @@ -104,6 +104,9 @@ _gpgme_decrypt_status_handler (void *priv, gpgme_status_code_t code, break; case GPGME_STATUS_ERROR: + /* Note that this is an informational status code which should + not lead to an erro retunr unless it is something not related + to the backend. */ { const char d_alg[] = "decrypt.algorithm"; const char u_alg[] = "Unsupported_Algorithm"; diff --git a/trunk/gpgme/gpgme.h b/trunk/gpgme/gpgme.h index 13884a6..5fd6858 100644 --- a/trunk/gpgme/gpgme.h +++ b/trunk/gpgme/gpgme.h @@ -74,7 +74,7 @@ extern "C" { AM_PATH_GPGME macro) check that this header matches the installed library. Warning: Do not edit the next line. configure will do that for you! */ -#define GPGME_VERSION "0.4.6" +#define GPGME_VERSION "0.4.7-cvs" /* Some opaque data types used by GPGME. */ diff --git a/trunk/gpgme/verify.c b/trunk/gpgme/verify.c index afd5946..a63a564 100644 --- a/trunk/gpgme/verify.c +++ b/trunk/gpgme/verify.c @@ -1,6 +1,6 @@ /* verify.c - Signature verification. Copyright (C) 2000 Werner Koch (dd9jn) - Copyright (C) 2001, 2002, 2003 g10 Code GmbH + Copyright (C) 2001, 2002, 2003, 2004 g10 Code GmbH This file is part of GPGME. @@ -550,7 +550,9 @@ _gpgme_verify_status_handler (void *priv, gpgme_status_code_t code, char *args) : gpg_error (GPG_ERR_INV_ENGINE); case GPGME_STATUS_ERROR: - return sig ? parse_error (sig, args) : gpg_error (GPG_ERR_INV_ENGINE); + /* The error status is informational, so we don't return an + error code if we are not ready to process this status. */ + return sig ? parse_error (sig, args) : 0; case GPGME_STATUS_EOF: if (sig && !opd->did_prepare_new_sig)