aboutsummaryrefslogtreecommitdiffstats
path: root/gpgmeplug/cryptplug.h
diff options
context:
space:
mode:
authorKarl-Heinz Zimmer <[email protected]>2002-06-26 04:44:58 +0000
committerKarl-Heinz Zimmer <[email protected]>2002-06-26 04:44:58 +0000
commitf97a834df6f0f1eec907dbcc6f9cf59c14838b0d (patch)
treead5cb44d9d7d03c69bc3fe36cfe533714a62f39e /gpgmeplug/cryptplug.h
parentOh pazzo mio! I forgot to *use* the nice dn string actually. (diff)
downloadgpgme-f97a834df6f0f1eec907dbcc6f9cf59c14838b0d.tar.gz
gpgme-f97a834df6f0f1eec907dbcc6f9cf59c14838b0d.zip
IMPORTANT BUGFIX: Avoid random crashes in findCertificates. (This also fixes bug #1088.)
Diffstat (limited to 'gpgmeplug/cryptplug.h')
-rw-r--r--gpgmeplug/cryptplug.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/gpgmeplug/cryptplug.h b/gpgmeplug/cryptplug.h
index 27655f5b..7b544e6f 100644
--- a/gpgmeplug/cryptplug.h
+++ b/gpgmeplug/cryptplug.h
@@ -1575,12 +1575,16 @@ bool storeCertificatesFromMessage( const char* ciphertext );
/*! \ingroup groupCryptAct
\brief Find all certificate for a given addressee.
- NOTE: The \c certificate parameter must point to an allready allocated
- block of memory which is large enough to hold the complete list.
+ NOTE: The certificate parameter must point to a not-yet allocated
+ char*. The function will allocate the memory needed and
+ return the size in newSize.
If secretOnly is true, only secret keys are returned.
*/
-bool findCertificates( const char* addressee, char** certificates, bool secretOnly );
-
+bool findCertificates( const char* addressee,
+ char** certificates,
+ int* newSize,
+ bool secretOnly );
+
/*! \ingroup groupCryptAct
\brief Encrypts an email message in
\c cleartext according to the \c addressee and