From: Steffen Hansen Date: Thu, 27 Jun 2002 16:26:15 +0000 (+0000) Subject: use gpgme_op_keylist_ext_start X-Git-Tag: gpgme-1.2.0@1385~916 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1f829e3dd0e4b1d44823a4552f538c163eb9f94e;p=gpgme.git use gpgme_op_keylist_ext_start --- diff --git a/trunk/gpgmeplug/ChangeLog b/trunk/gpgmeplug/ChangeLog index ddc7f33..86a8d88 100644 --- a/trunk/gpgmeplug/ChangeLog +++ b/trunk/gpgmeplug/ChangeLog @@ -1,6 +1,8 @@ 2002-06-27 Steffen Hansen - * 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 diff --git a/trunk/gpgmeplug/gpgmeplug.c b/trunk/gpgmeplug/gpgmeplug.c index 48ce810..3774b51 100644 --- a/trunk/gpgmeplug/gpgmeplug.c +++ b/trunk/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;