aboutsummaryrefslogtreecommitdiffstats
path: root/gpgmeplug/gpgme-openpgp.c
diff options
context:
space:
mode:
authorKarl-Heinz Zimmer <[email protected]>2002-06-12 11:05:42 +0000
committerKarl-Heinz Zimmer <[email protected]>2002-06-12 11:05:42 +0000
commite7dc76582622fdaa43dc369c84b2dae2128647a8 (patch)
tree0b0b8d7c18b802169abb2cccb9791fa9a514c559 /gpgmeplug/gpgme-openpgp.c
parent2002-06-11 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-e7dc76582622fdaa43dc369c84b2dae2128647a8.tar.gz
gpgme-e7dc76582622fdaa43dc369c84b2dae2128647a8.zip
Add Plugin configuration option to allow for sending of *opaque* signed messages. Unfortunately this is necessary for communication with some MS Outlook clients, e.g. TrustedMime is not able to understand Multipart/Signed messages. <sigh> NOTE: This breaks compabilitity with kdenetwork, so make sure to update the KDE sources as well...
Diffstat (limited to 'gpgmeplug/gpgme-openpgp.c')
-rw-r--r--gpgmeplug/gpgme-openpgp.c53
1 files changed, 37 insertions, 16 deletions
diff --git a/gpgmeplug/gpgme-openpgp.c b/gpgmeplug/gpgme-openpgp.c
index e0bd1639..69c617cf 100644
--- a/gpgmeplug/gpgme-openpgp.c
+++ b/gpgmeplug/gpgme-openpgp.c
@@ -1,23 +1,44 @@
#define GPGMEPLUG_PROTOCOL GPGME_PROTOCOL_OpenPGP
-#define GPGMEPLUG_SIGN_INCLUDE_CLEARTEXT true
-#define GPGMEPLUG_SIGN_MAKE_MIME_OBJECT true
-#define GPGMEPLUG_SIGN_MAKE_MULTI_MIME true
-#define GPGMEPLUG_SIGN_CTYPE_MAIN "multipart/signed;protocol=\"application/pgp-signature\";micalg=pgp-sha1"
-#define GPGMEPLUG_SIGN_CDISP_MAIN ""
-#define GPGMEPLUG_SIGN_CTENC_MAIN ""
-#define GPGMEPLUG_SIGN_CTYPE_VERSION ""
-#define GPGMEPLUG_SIGN_CDISP_VERSION ""
-#define GPGMEPLUG_SIGN_CTENC_VERSION ""
-#define GPGMEPLUG_SIGN_BTEXT_VERSION ""
-#define GPGMEPLUG_SIGN_CTYPE_CODE "application/pgp-signature"
-#define GPGMEPLUG_SIGN_CDISP_CODE ""
-#define GPGMEPLUG_SIGN_CTENC_CODE ""
-#define GPGMEPLUG_SIGN_FLAT_PREFIX ""
-#define GPGMEPLUG_SIGN_FLAT_SEPARATOR ""
-#define GPGMEPLUG_SIGN_FLAT_POSTFIX ""
+/* definitions for signing */
+// 1. opaque signatures (only used for S/MIME)
+#define GPGMEPLUG_OPA_SIGN_INCLUDE_CLEARTEXT false
+#define GPGMEPLUG_OPA_SIGN_MAKE_MIME_OBJECT false
+#define GPGMEPLUG_OPA_SIGN_MAKE_MULTI_MIME false
+#define GPGMEPLUG_OPA_SIGN_CTYPE_MAIN ""
+#define GPGMEPLUG_OPA_SIGN_CDISP_MAIN ""
+#define GPGMEPLUG_OPA_SIGN_CTENC_MAIN ""
+#define GPGMEPLUG_OPA_SIGN_CTYPE_VERSION ""
+#define GPGMEPLUG_OPA_SIGN_CDISP_VERSION ""
+#define GPGMEPLUG_OPA_SIGN_CTENC_VERSION ""
+#define GPGMEPLUG_OPA_SIGN_BTEXT_VERSION ""
+#define GPGMEPLUG_OPA_SIGN_CTYPE_CODE ""
+#define GPGMEPLUG_OPA_SIGN_CDISP_CODE ""
+#define GPGMEPLUG_OPA_SIGN_CTENC_CODE ""
+#define GPGMEPLUG_OPA_SIGN_FLAT_PREFIX ""
+#define GPGMEPLUG_OPA_SIGN_FLAT_SEPARATOR ""
+#define GPGMEPLUG_OPA_SIGN_FLAT_POSTFIX ""
+// 2. detached signatures (used for S/MIME and for OpenPGP)
+#define GPGMEPLUG_DET_SIGN_INCLUDE_CLEARTEXT true
+#define GPGMEPLUG_DET_SIGN_MAKE_MIME_OBJECT true
+#define GPGMEPLUG_DET_SIGN_MAKE_MULTI_MIME true
+#define GPGMEPLUG_DET_SIGN_CTYPE_MAIN "multipart/signed;protocol=application/pgp-signature;micalg=pgp-sha1"
+#define GPGMEPLUG_DET_SIGN_CDISP_MAIN ""
+#define GPGMEPLUG_DET_SIGN_CTENC_MAIN ""
+#define GPGMEPLUG_DET_SIGN_CTYPE_VERSION ""
+#define GPGMEPLUG_DET_SIGN_CDISP_VERSION ""
+#define GPGMEPLUG_DET_SIGN_CTENC_VERSION ""
+#define GPGMEPLUG_DET_SIGN_BTEXT_VERSION ""
+#define GPGMEPLUG_DET_SIGN_CTYPE_CODE "application/pgp-signature"
+#define GPGMEPLUG_DET_SIGN_CDISP_CODE ""
+#define GPGMEPLUG_DET_SIGN_CTENC_CODE ""
+#define GPGMEPLUG_DET_SIGN_FLAT_PREFIX ""
+#define GPGMEPLUG_DET_SIGN_FLAT_SEPARATOR ""
+#define GPGMEPLUG_DET_SIGN_FLAT_POSTFIX ""
+// 3. common definitions for opaque and detached signing
#define __GPGMEPLUG_SIGNATURE_CODE_IS_BINARY false
+/* definitions for encoding */
#define GPGMEPLUG_ENC_INCLUDE_CLEARTEXT false
#define GPGMEPLUG_ENC_MAKE_MIME_OBJECT true
#define GPGMEPLUG_ENC_MAKE_MULTI_MIME true