aboutsummaryrefslogtreecommitdiffstats
path: root/gpgmeplug/cryptplug.h
diff options
context:
space:
mode:
authorKarl-Heinz Zimmer <[email protected]>2002-04-27 05:32:39 +0000
committerKarl-Heinz Zimmer <[email protected]>2002-04-27 05:32:39 +0000
commit996d48a95e3d54de5f2e1e539e211cb76620801b (patch)
tree128484045de4509dc04e21ee77945387b18dc7ed /gpgmeplug/cryptplug.h
parent* Makefile.am: Create libtool libraries. (diff)
downloadgpgme-996d48a95e3d54de5f2e1e539e211cb76620801b.tar.gz
gpgme-996d48a95e3d54de5f2e1e539e211cb76620801b.zip
allow checking of Opaque Signed message data
Diffstat (limited to 'gpgmeplug/cryptplug.h')
-rw-r--r--gpgmeplug/cryptplug.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/gpgmeplug/cryptplug.h b/gpgmeplug/cryptplug.h
index c3a09792..72cfdf40 100644
--- a/gpgmeplug/cryptplug.h
+++ b/gpgmeplug/cryptplug.h
@@ -1449,9 +1449,18 @@ struct SignatureMetaData {
/*! \ingroup groupSignAct
\brief Checks whether the signature of a message is
- valid. \c ciphertext specifies the signed message
- as it was received by the MUA, \c signaturetext is the
- signature itself.
+ valid.
+
+ \c cleartext must never be 0 but be a valid pointer.
+
+ If \c *cleartext > 0 then **cleartext specifies the message text
+ that was signed and \c signaturetext is the signature itself.
+
+ If \c *cleartext == 0 is an empty string then \c signaturetext is
+ supposed to contain an opaque signed message part. After checking the
+ data and verifying the signature the cleartext of the message will be
+ returned in \c cleartext. The user must free the respective memory
+ ocupied by *cleartext.
Depending on the configuration, MUAs might not need to use this.
If \c sigmeta is non-null, the
@@ -1459,7 +1468,7 @@ struct SignatureMetaData {
contain meta information about the signature after the
function call.
*/
-bool checkMessageSignature( const char* ciphertext,
+bool checkMessageSignature( char** cleartext,
const char* signaturetext,
bool signatureIsBinary,
int signatureLen,