* gpgme.h (gpgme_set_protocol): New prototype.
2001-11-22 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am (libgpgsmplug_la_LIBADD): New variable.
(libgpgsmplug_la_LDFLAGS): Likewise.
(libgpgsmplug_la_SOURCES): Likewise.
(lib_LTLIBRARIES): Add libgpgsmplug.la.
(INCLUDES): Include the local gpgme.h.
* gpgmeplug.c (signMessage): Set protocol.
(GPGMEPLUG_PROTOCOL) [!GPGMEPLUG_PROTOCOL]: Set
GPGMEPLUG_PROTOCOL.
* gpgsmplug.c: New file.
+2001-11-22 Marcus Brinkmann <marcus@g10code.de>
+
+ * gpgme.h (gpgme_set_protocol): New prototype.
+
2001-11-22 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_op_decrypt): New function.
GpgmeCtx gpgme_wait (GpgmeCtx c, int hang);
char *gpgme_get_notation (GpgmeCtx c);
+GpgmeError gpgme_set_protocol (GpgmeCtx c, GpgmeProtocol prot);
void gpgme_set_armor (GpgmeCtx c, int yes);
int gpgme_get_armor (GpgmeCtx c);
void gpgme_set_textmode (GpgmeCtx c, int yes);
+2001-11-22 Marcus Brinkmann <marcus@g10code.de>
+
+ * Makefile.am (libgpgsmplug_la_LIBADD): New variable.
+ (libgpgsmplug_la_LDFLAGS): Likewise.
+ (libgpgsmplug_la_SOURCES): Likewise.
+ (lib_LTLIBRARIES): Add libgpgsmplug.la.
+ (INCLUDES): Include the local gpgme.h.
+
+ * gpgmeplug.c (signMessage): Set protocol.
+ (GPGMEPLUG_PROTOCOL) [!GPGMEPLUG_PROTOCOL]: Set
+ GPGMEPLUG_PROTOCOL.
+ * gpgsmplug.c: New file.
+
2001-11-21 Marcus Brinkmann <marcus@g10code.de>
* gpgmeplug.c: Include config.h only if [HAVE_CONFIG_H]. Do not
## Process this file with automake to produce Makefile.in
-INCLUDES = -I.. -I../gpgme -I$(top_srcdir)/include
+INCLUDES = -I$(top_srcdir)/gpgme
#LDADD = ../gpgme/libgpgme.la
libgpgmeplug_la_LIBADD = ../gpgme/libgpgme.la
+libgpgsmplug_la_LIBADD = ../gpgme/libgpgme.la
BUILT_SOURCES =
#noinst_LIBRARIES = libgpgmeplug.a
#noinst_LTLIBRARIES = libgpgmeplug.la
-lib_LTLIBRARIES = libgpgmeplug.la
+lib_LTLIBRARIES = libgpgmeplug.la libgpgsmplug.la
libgpgmeplug_la_LDFLAGS = -shared -Wl,-soname,libgpgmeplug.so
+libgpgsmplug_la_LDFLAGS = -shared -Wl,-soname,libgpgsmplug.so
libgpgmeplug_la_SOURCES = gpgme.h \
cryptplug.h \
gpgmeplug.c
+libgpgsmplug_la_SOURCES = gpgme.h \
+ cryptplug.h \
+ gpgmeplug.c
+
#include <errno.h>
#include "gpgme.h"
+#ifndef GPGMEPLUG_PROTOCOL
+#define GPGMEPLUG_PROTOCOL GPGME_PROTOCOL_OpenPGP
+#endif
#include "cryptplug.h"
return false;
gpgme_new (&ctx);
+ gpgme_set_protocol (ctx, GPGMEPLUG_PROTOCOL);
--- /dev/null
+#define GPGMEPLUG_PROTOCOL GPGME_PROTOCOL_CMS
+#include "gpgmeplug.c"