From: Marcus Brinkmann Date: Thu, 27 Sep 2007 12:17:24 +0000 (+0000) Subject: doc/ X-Git-Tag: gpgme-1.1.6~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=30df62122dc09769e124c8ac0661b16df8a38185;p=gpgme.git doc/ 2007-09-27 Marcus Brinkmann * gpgme.texi (Protocols and Engines): Document GPGME_PROTOCOL_UNKNOWN. gpgme/ 2007-09-27 Marcus Brinkmann * gpgme.h (gpgme_protocol_t): Add GPGME_PROTOCOL_UNKNOWN. * gpgme.c (gpgme_get_protocol_name): Implement support for GPGME_PROTOCOL_UNKNOWN. --- diff --git a/ChangeLog b/ChangeLog index ba9c834..553dda1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2007-09-27 Marcus Brinkmann + * 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. diff --git a/doc/ChangeLog b/doc/ChangeLog index 7328f38..24b2abe 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2007-09-27 Marcus Brinkmann + + * gpgme.texi (Protocols and Engines): Document GPGME_PROTOCOL_UNKNOWN. + 2007-09-11 Werner Koch * gpgme.texi (I/O Callback Example): Typo fix. diff --git a/doc/gpgme.texi b/doc/gpgme.texi index 4692d26..fe0ade2 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -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 diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 785fcd2..d8e1f96 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,5 +1,9 @@ 2007-09-27 Marcus Brinkmann + * 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), diff --git a/gpgme/gpgme.c b/gpgme/gpgme.c index 5843953..a96db53 100644 --- a/gpgme/gpgme.c +++ b/gpgme/gpgme.c @@ -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; } diff --git a/gpgme/gpgme.h b/gpgme/gpgme.h index a4dbcd4..57bb011 100644 --- a/gpgme/gpgme.h +++ b/gpgme/gpgme.h @@ -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;