doc/
authorMarcus Brinkmann <mb@g10code.com>
Thu, 27 Sep 2007 12:17:24 +0000 (12:17 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Thu, 27 Sep 2007 12:17:24 +0000 (12:17 +0000)
2007-09-27  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Protocols and Engines): Document GPGME_PROTOCOL_UNKNOWN.

gpgme/
2007-09-27  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (gpgme_protocol_t): Add GPGME_PROTOCOL_UNKNOWN.
* gpgme.c (gpgme_get_protocol_name): Implement support for
GPGME_PROTOCOL_UNKNOWN.

ChangeLog
doc/ChangeLog
doc/gpgme.texi
gpgme/ChangeLog
gpgme/gpgme.c
gpgme/gpgme.h

index ba9c834742f1ad7d145c3f90212e0712acb9caf7..553dda13493bf57a9a6c0f8b17db93171fc8ec13 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2007-09-27  Marcus Brinkmann  <marcus@g10code.de>
 
+       * assuan-pipe-connect.c (pipe_connect_gpgme): Fix last change.
+
        * assuan-pipe-connect.c (pipe_connect_gpgme): New function, use it
        if _ASSUAN_IN_GPGME_BUILD_ASSUAN.
 
index 7328f3811161113be962f4abc34a7602f4860454..24b2abedf9bbad94f29af61788800f67f98109dc 100644 (file)
@@ -1,3 +1,7 @@
+2007-09-27  Marcus Brinkmann  <marcus@g10code.de>
+
+       * gpgme.texi (Protocols and Engines): Document GPGME_PROTOCOL_UNKNOWN.
+
 2007-09-11  Werner Koch  <wk@g10code.com>
 
        * gpgme.texi (I/O Callback Example): Typo fix.
index 4692d263fb2ed8fc38ca333c360b0e5095f2ee07..fe0ade238f03654b0a45eaddaf42f71109d84ebb 100644 (file)
@@ -748,6 +748,12 @@ This specifies the OpenPGP protocol.
 
 @item GPGME_PROTOCOL_CMS
 This specifies the Cryptographic Message Syntax.
+
+@item GPGME_PROTOCOL_UNKNOWN
+Reserved for future extension.  You may use this to indicate that the
+used protocol is not known to the application.  Currently,
+@acronym{GPGME} does not accept this value in any operation, though,
+except for @code{gpgme_get_protocol_name}.
 @end table
 @end deftp
 
index 785fcd262ffc8593dfb49fa019517068433505f1..d8e1f96bce83c2c7163b508f8e3d39dc5668c361 100644 (file)
@@ -1,5 +1,9 @@
 2007-09-27  Marcus Brinkmann  <marcus@g10code.de>
 
+       * gpgme.h (gpgme_protocol_t): Add GPGME_PROTOCOL_UNKNOWN.
+       * gpgme.c (gpgme_get_protocol_name): Implement support for
+       GPGME_PROTOCOL_UNKNOWN.
+
        * kdpipeiodevice.h: Fix last change.
 
        * w32-glib-io.c (_gpgme_io_pipe), w32-qt-io.c (_gpgme_io_pipe),
index 58439530905eef0acb79074c2d17c0a0f258c3a0..a96db530bb9b693c6235a18b5dc31201f8e54e3b 100644 (file)
@@ -208,6 +208,9 @@ gpgme_get_protocol_name (gpgme_protocol_t protocol)
     case GPGME_PROTOCOL_CMS:
       return "CMS";
 
+    case GPGME_PROTOCOL_UNKNOWN:
+      return "unknown";
+
     default:
       return NULL;
     }
index a4dbcd4a339a89bf275c745e629d273da9f4fc75..57bb01162f3ebba984c68122119488f470543355 100644 (file)
@@ -300,7 +300,8 @@ gpgme_validity_t;
 typedef enum
   {
     GPGME_PROTOCOL_OpenPGP = 0,  /* The default mode.  */
-    GPGME_PROTOCOL_CMS     = 1
+    GPGME_PROTOCOL_CMS     = 1,
+    GPGME_PROTOCOL_UNKNOWN = 255
   }
 gpgme_protocol_t;