support for listing of external certs (untested)

This commit is contained in:
Steffen Hansen 2002-06-10 18:37:11 +00:00
parent 15188d9a79
commit 8ac95a9772
2 changed files with 4 additions and 2 deletions

View File

@ -1750,7 +1750,7 @@ struct CertificateInfo {
endListCertificates( it );
\endverbatim
*/
struct CertIterator* startListCertificates( const char* pattern );
struct CertIterator* startListCertificates( const char* pattern, int remote );
struct CertificateInfo* nextCertificate( struct CertIterator* );
void endListCertificates( struct CertIterator* );

View File

@ -1997,7 +1997,7 @@ struct CertIterator {
struct CertificateInfo info;
};
struct CertIterator* startListCertificates( const char* pattern )
struct CertIterator* startListCertificates( const char* pattern, int remote )
{
GpgmeError err;
struct CertIterator* it;
@ -2013,6 +2013,8 @@ struct CertIterator* startListCertificates( const char* pattern )
}
gpgme_set_protocol (it->ctx, GPGME_PROTOCOL_CMS);
if( remote ) gpgme_set_keylist_mode ( it->ctx, GPGME_KEYLIST_MODE_EXTERN );
else gpgme_set_keylist_mode ( it->ctx, GPGME_KEYLIST_MODE_LOCAL );
err = gpgme_op_keylist_start ( it->ctx, pattern, 0);
if( err != GPGME_No_Error ) {
endListCertificates( it );