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.
This commit is contained in:
Marcus Brinkmann 2007-09-27 12:17:24 +00:00
parent 7c0007926a
commit 30df62122d
6 changed files with 21 additions and 1 deletions

View File

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

View 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.

View 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

View 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),

View 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;
}

View 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;