From: Werner Koch Date: Thu, 16 Sep 2010 13:39:00 +0000 (+0000) Subject: Add a new error code. X-Git-Tag: gpgme-1.3.1~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bc22c2098db6fec432df1bfe81aeecb736952479;p=gpgme.git Add a new error code. --- diff --git a/src/ChangeLog b/src/ChangeLog index 95b843d..d772300 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2010-09-16 Werner Koch + + * util.h: Add fallback define for GPG_ERR_MISSING_ISSUER_CERT. + * op-support.c: Include "util.h". + (_gpgme_parse_inv_recp): Handle new code 12. + 2010-09-02 Marcus Brinkmann * error.c (gpgme_err_code_to_errno): Fix cut and paste bug (thanks diff --git a/src/op-support.c b/src/op-support.c index 66e6849..0a5639b 100644 --- a/src/op-support.c +++ b/src/op-support.c @@ -30,6 +30,7 @@ #include "gpgme.h" #include "context.h" #include "ops.h" +#include "util.h" gpgme_error_t @@ -246,6 +247,10 @@ _gpgme_parse_inv_recp (char *args, gpgme_invalid_key_t *key) case 11: inv_key->reason = gpg_error (GPG_ERR_MISSING_CERT); break; + + case 12: + inv_key->reason = gpg_error (GPG_ERR_MISSING_ISSUER_CERT); + break; } while (*tail && *tail == ' ') diff --git a/src/util.h b/src/util.h index b892e44..9965847 100644 --- a/src/util.h +++ b/src/util.h @@ -136,6 +136,9 @@ const char *_gpgme_get_w32spawn_path (void); #ifndef GPG_ERR_NOT_OPERATIONAL #define GPG_ERR_NOT_OPERATIONAL 176 #endif +#ifndef GPG_ERR_MISSING_ISSUER_CERT +#define GPG_ERR_MISSING_ISSUER_CERT 185 +#endif #ifdef ENABLE_ASSUAN