struct CertIterator* startListCertificates( const char* pattern ); struct CertificateInfo* nextCertificate( struct CertIterator* ); void endListCertificates( struct CertIterator* );
struct CertificateInfo* info;
struct CertIterator* it = startListCertificates("Steffen", 0 );
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()
}
int truncated = endListCertificates( it );
Definition at line