Add a new error code.

This commit is contained in:
Werner Koch 2010-09-16 13:39:00 +00:00
parent c828c9d9a4
commit bc22c2098d
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-09-16 Werner Koch <wk@g10code.com>
* 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 <marcus@g10code.de>
* error.c (gpgme_err_code_to_errno): Fix cut and paste bug (thanks

View File

@ -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 == ' ')

View File

@ -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