From bc22c2098db6fec432df1bfe81aeecb736952479 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 16 Sep 2010 13:39:00 +0000 Subject: [PATCH] Add a new error code. --- src/ChangeLog | 6 ++++++ src/op-support.c | 5 +++++ src/util.h | 3 +++ 3 files changed, 14 insertions(+) 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 -- 2.26.2