aboutsummaryrefslogtreecommitdiffstats
path: root/gpgmeplug/cryptplug.h
diff options
context:
space:
mode:
authorSteffen Hansen <[email protected]>2002-06-13 01:56:31 +0000
committerSteffen Hansen <[email protected]>2002-06-13 01:56:31 +0000
commit1bd00d0a184c2b86ec8f6181cdc2ef455d1a01e7 (patch)
tree4497beb8eae24cc4e587359f8852ff7c86693032 /gpgmeplug/cryptplug.h
parenttests/ (diff)
downloadgpgme-1bd00d0a184c2b86ec8f6181cdc2ef455d1a01e7.tar.gz
gpgme-1bd00d0a184c2b86ec8f6181cdc2ef455d1a01e7.zip
bugfix + change to the nextCertificate() function prototype
Diffstat (limited to 'gpgmeplug/cryptplug.h')
-rw-r--r--gpgmeplug/cryptplug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpgmeplug/cryptplug.h b/gpgmeplug/cryptplug.h
index eca2a2bb..e1ba0a92 100644
--- a/gpgmeplug/cryptplug.h
+++ b/gpgmeplug/cryptplug.h
@@ -1764,7 +1764,7 @@ struct CertificateInfo {
\verbatim
struct CertificateInfo* info;
struct CertIterator* it = startListCertificates("Steffen");
- while( info = nextCertificate( it ) ) {
+ while( nextCertificate( it, &info ) == GPGME_No_Error && info ) {
do something with info.
dont free() it, the struct will be reused
by the next call to nextCertificate()
@@ -1773,7 +1773,7 @@ struct CertificateInfo {
\endverbatim
*/
struct CertIterator* startListCertificates( const char* pattern, int remote );
-struct CertificateInfo* nextCertificate( struct CertIterator* );
+int nextCertificate( struct CertIterator*, struct CertificateInfo** result );
void endListCertificates( struct CertIterator* );