[svn] gpgme - r1491 - trunk/src

svn author wk cvs at cvs.gnupg.org
Thu Sep 16 15:39:01 CEST 2010


Author: wk
Date: 2010-09-16 15:39:00 +0200 (Thu, 16 Sep 2010)
New Revision: 1491

Modified:
   trunk/src/ChangeLog
   trunk/src/op-support.c
   trunk/src/util.h
Log:
Add a new error code.


Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog	2010-09-02 21:33:26 UTC (rev 1490)
+++ trunk/src/ChangeLog	2010-09-16 13:39:00 UTC (rev 1491)
@@ -1,3 +1,9 @@
+2010-09-16  Werner Koch  <wk at 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 at g10code.de>
 
 	* error.c (gpgme_err_code_to_errno): Fix cut and paste bug (thanks

Modified: trunk/src/op-support.c
===================================================================
--- trunk/src/op-support.c	2010-09-02 21:33:26 UTC (rev 1490)
+++ trunk/src/op-support.c	2010-09-16 13:39:00 UTC (rev 1491)
@@ -30,6 +30,7 @@
 #include "gpgme.h"
 #include "context.h"
 #include "ops.h"
+#include "util.h"
 
 
 gpgme_error_t
@@ -246,6 +247,10 @@
     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 == ' ')

Modified: trunk/src/util.h
===================================================================
--- trunk/src/util.h	2010-09-02 21:33:26 UTC (rev 1490)
+++ trunk/src/util.h	2010-09-16 13:39:00 UTC (rev 1491)
@@ -136,6 +136,9 @@
 #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





More information about the Gnupg-commits mailing list