use gpgme_op_keylist_ext_start
This commit is contained in:
parent
bb19f16ec4
commit
2ea796a1a0
@ -1,6 +1,8 @@
|
|||||||
2002-06-27 Steffen Hansen <steffen@hrhansen.dk>
|
2002-06-27 Steffen Hansen <steffen@hrhansen.dk>
|
||||||
|
|
||||||
* 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 <steffen@hrhansen.dk>
|
2002-06-25 Steffen Hansen <steffen@hrhansen.dk>
|
||||||
|
|
||||||
|
@ -2242,7 +2242,8 @@ startListCertificates( const char* pattern, int remote )
|
|||||||
{
|
{
|
||||||
GpgmeError err;
|
GpgmeError err;
|
||||||
struct CertIterator* it;
|
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 ) );
|
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);
|
gpgme_set_protocol (it->ctx, GPGME_PROTOCOL_CMS);
|
||||||
if( remote ) gpgme_set_keylist_mode ( it->ctx, GPGME_KEYLIST_MODE_EXTERN );
|
if( remote ) gpgme_set_keylist_mode ( it->ctx, GPGME_KEYLIST_MODE_EXTERN );
|
||||||
else gpgme_set_keylist_mode ( it->ctx, GPGME_KEYLIST_MODE_LOCAL );
|
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 ) {
|
if( err != GPGME_No_Error ) {
|
||||||
endListCertificates( it );
|
endListCertificates( it );
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user