diff options
| author | Steffen Hansen <[email protected]> | 2002-06-10 18:37:11 +0000 | 
|---|---|---|
| committer | Steffen Hansen <[email protected]> | 2002-06-10 18:37:11 +0000 | 
| commit | 8ac95a977290ea119de1b57c7361f722aaf78bd2 (patch) | |
| tree | 59555e2e0e962789ff31fc44c3640f0b824e6a07 /gpgmeplug/gpgmeplug.c | |
| parent | reorder issuer DN also (diff) | |
| download | gpgme-8ac95a977290ea119de1b57c7361f722aaf78bd2.tar.gz gpgme-8ac95a977290ea119de1b57c7361f722aaf78bd2.zip | |
support for listing of external certs (untested)
Diffstat (limited to 'gpgmeplug/gpgmeplug.c')
| -rw-r--r-- | gpgmeplug/gpgmeplug.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c index 7b1cc942..59150e27 100644 --- a/gpgmeplug/gpgmeplug.c +++ b/gpgmeplug/gpgmeplug.c @@ -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 ); | 
