diff options
| author | Steffen Hansen <[email protected]> | 2002-06-27 13:15:02 +0000 | 
|---|---|---|
| committer | Steffen Hansen <[email protected]> | 2002-06-27 13:15:02 +0000 | 
| commit | bb19f16ec4861af434be89a8c2fdb42ad53ac758 (patch) | |
| tree | fb97a9c93d856686faebe156e1f92ba25e4b1b02 /gpgmeplug/gpgmeplug.c | |
| parent | Missing implementation bug fixed: Return both error id and error plain text f... (diff) | |
| download | gpgme-bb19f16ec4861af434be89a8c2fdb42ad53ac758.tar.gz gpgme-bb19f16ec4861af434be89a8c2fdb42ad53ac758.zip | |
handle truncated data
Diffstat (limited to 'gpgmeplug/gpgmeplug.c')
| -rw-r--r-- | gpgmeplug/gpgmeplug.c | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c index 25f7e2ae..48ce8106 100644 --- a/gpgmeplug/gpgmeplug.c +++ b/gpgmeplug/gpgmeplug.c @@ -2402,19 +2402,25 @@ nextCertificate( struct CertIterator* it, struct CertificateInfo** result )      gpgme_key_release (key);      /*return &(it->info);*/      *result =  &(it->info); -  } else *result = NULL; +  } else { +    *result = NULL; +  }    return retval;  } -void  +int  endListCertificates( struct CertIterator* it )  {    /*fprintf( stderr,  "endListCertificates()\n" );*/ +  char *s = gpgme_get_op_info (it->ctx, 0); +  int truncated = s && strstr (s, "<truncated/>"); +  if( s ) free( s );    assert(it);    freeInfo( &(it->info) );    gpgme_op_keylist_end(it->ctx);    gpgme_release (it->ctx);    free( it ); +  return truncated;  }  int | 
