diff options
| author | Karl-Heinz Zimmer <[email protected]> | 2001-12-24 00:26:52 +0000 | 
|---|---|---|
| committer | Karl-Heinz Zimmer <[email protected]> | 2001-12-24 00:26:52 +0000 | 
| commit | e6c1c2828f9dbd89057048e611817ada3607f133 (patch) | |
| tree | 732cc96a7403bfe250f22d4ef2030e6a288d3479 | |
| parent | finished interface of StructuringInfo struct and added implementation of sett... (diff) | |
| download | gpgme-e6c1c2828f9dbd89057048e611817ada3607f133.tar.gz gpgme-e6c1c2828f9dbd89057048e611817ada3607f133.zip  | |
Added specification of strings and bool values for S/MIME signing and encrypting. (note: this new StructuringInfo feature is ignored by KMail at the moment, this is an urgent ToDo item since the KMail sources are _not_ able to use the cryptplug with the changes made today)
| -rw-r--r-- | gpgmeplug/gpgsmplug.c | 35 | 
1 files changed, 35 insertions, 0 deletions
diff --git a/gpgmeplug/gpgsmplug.c b/gpgmeplug/gpgsmplug.c index f618267a..395b9a2d 100644 --- a/gpgmeplug/gpgsmplug.c +++ b/gpgmeplug/gpgsmplug.c @@ -1,2 +1,37 @@  #define GPGMEPLUG_PROTOCOL GPGME_PROTOCOL_CMS + +#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/pkcs7-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; name=\"smime.p7s\"" +#define GPGMEPLUG_SIGN_CDISP_CODE        "attachment; filename=\"smime.p7s\"" +#define GPGMEPLUG_SIGN_CTENC_CODE        "base64" +#define GPGMEPLUG_SIGN_FLAT_PREFIX       "" +#define GPGMEPLUG_SIGN_FLAT_SEPARATOR    "" +#define GPGMEPLUG_SIGN_FLAT_POSTFIX      "" + +#define GPGMEPLUG_ENC_INCLUDE_CLEARTEXT  false +#define GPGMEPLUG_ENC_MAKE_MIME_OBJECT   true +#define GPGMEPLUG_ENC_MAKE_MULTI_MIME    false +#define GPGMEPLUG_ENC_CTYPE_MAIN         "application/pkcs7-mime; smime-type=enveloped-data; name=\"smime.p7m\"" +#define GPGMEPLUG_ENC_CDISP_MAIN         "attachment; filename=\"smime.p7m\"" +#define GPGMEPLUG_ENC_CTENC_MAIN         "base64" +#define GPGMEPLUG_ENC_CTYPE_VERSION      "" +#define GPGMEPLUG_ENC_CDISP_VERSION      "" +#define GPGMEPLUG_ENC_CTENC_VERSION      "" +#define GPGMEPLUG_ENC_BTEXT_VERSION      "" +#define GPGMEPLUG_ENC_CTYPE_CODE         "" +#define GPGMEPLUG_ENC_CDISP_CODE         "" +#define GPGMEPLUG_ENC_CTENC_CODE         "" +#define GPGMEPLUG_ENC_FLAT_PREFIX        "" +#define GPGMEPLUG_ENC_FLAT_SEPARATOR     "" +#define GPGMEPLUG_ENC_FLAT_POSTFIX       "" +  #include "gpgmeplug.c"  | 
