diff options
author | Steffen Hansen <[email protected]> | 2002-06-27 16:26:15 +0000 |
---|---|---|
committer | Steffen Hansen <[email protected]> | 2002-06-27 16:26:15 +0000 |
commit | 2ea796a1a0a1b613bfbef31a87596eee957de035 (patch) | |
tree | 3bae33908696c1e338f4d4e48ec20c4eb76bcffc | |
parent | handle truncated data (diff) | |
download | gpgme-2ea796a1a0a1b613bfbef31a87596eee957de035.tar.gz gpgme-2ea796a1a0a1b613bfbef31a87596eee957de035.zip |
use gpgme_op_keylist_ext_start
-rw-r--r-- | gpgmeplug/ChangeLog | 4 | ||||
-rw-r--r-- | gpgmeplug/gpgmeplug.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gpgmeplug/ChangeLog b/gpgmeplug/ChangeLog index ddc7f335..86a8d88e 100644 --- a/gpgmeplug/ChangeLog +++ b/gpgmeplug/ChangeLog @@ -1,6 +1,8 @@ 2002-06-27 Steffen Hansen <[email protected]> - * Handle truncated data from dirmngr. + * gpgmeplug.c: Fixed pattern related bug. + + * cryptplug.h, gpgmeplug.c: Handle truncated data from dirmngr. 2002-06-25 Steffen Hansen <[email protected]> diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c index 48ce8106..3774b514 100644 --- a/gpgmeplug/gpgmeplug.c +++ b/gpgmeplug/gpgmeplug.c @@ -2242,7 +2242,8 @@ startListCertificates( const char* pattern, int remote ) { GpgmeError err; struct CertIterator* it; - /*fprintf( stderr, "startListCertificates()" );*/ + const char* patterns[] = { pattern, NULL }; + fprintf( stderr, "startListCertificates( \"%s\", %d )", pattern, remote ); it = (struct CertIterator*)safe_malloc( sizeof( struct CertIterator ) ); @@ -2256,7 +2257,7 @@ startListCertificates( const char* pattern, int remote ) 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); + err = gpgme_op_keylist_ext_start ( it->ctx, patterns, 0, 0); if( err != GPGME_No_Error ) { endListCertificates( it ); return NULL; |