aboutsummaryrefslogtreecommitdiffstats
path: root/gpgmeplug/cryptplug.h
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/cryptplug.h
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/cryptplug.h')
-rw-r--r--gpgmeplug/cryptplug.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/gpgmeplug/cryptplug.h b/gpgmeplug/cryptplug.h
index a494cc70..eca2a2bb 100644
--- a/gpgmeplug/cryptplug.h
+++ b/gpgmeplug/cryptplug.h
@@ -194,7 +194,15 @@ typedef enum {
PinRequest_AfterMinutes = 5
} PinRequests;
-/* dummy values: */
+
+typedef enum {
+ SignatureCompoundMode_undef = 0,
+
+ SignatureCompoundMode_Opaque = 1,
+ SignatureCompoundMode_Detached = 2
+} SignatureCompoundMode;
+
+
typedef enum {
SendCert_undef = 0,
@@ -204,7 +212,7 @@ typedef enum {
SendCert_SendChainWithRoot = 4
} SendCertificates;
-/* dummy values: */
+
typedef enum {
SignAlg_undef = 0,
@@ -406,6 +414,20 @@ void setSignatureAlgorithm( SignatureAlgorithm );
\brief Returns the algorithm used for signing.
*/
SignatureAlgorithm signatureAlgorithm( void );
+
+/*! \ingroup groupConfigSign
+\brief Sets whether signatures and signed data should be send
+ as opaque signed or
+ as multipart/signed message parts.
+*/
+void setSignatureCompoundMode( SignatureCompoundMode );
+
+/*! \ingroup groupConfigSign
+\brief Returns whether signatures and signed data will be send
+ as opaque signed or
+ as multipart/signed message parts.
+*/
+SignatureCompoundMode signatureCompoundMode( void );
/*! \ingroup groupConfigSign
\brief Sets which certificates should be sent with the