diff options
author | Karl-Heinz Zimmer <[email protected]> | 2002-06-26 04:44:58 +0000 |
---|---|---|
committer | Karl-Heinz Zimmer <[email protected]> | 2002-06-26 04:44:58 +0000 |
commit | f97a834df6f0f1eec907dbcc6f9cf59c14838b0d (patch) | |
tree | ad5cb44d9d7d03c69bc3fe36cfe533714a62f39e /gpgmeplug/cryptplug.h | |
parent | Oh pazzo mio! I forgot to *use* the nice dn string actually. (diff) | |
download | gpgme-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.h | 12 |
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 |