+2002-06-27 Steffen Hansen <steffen@hrhansen.dk>
+
+ * Handle truncated data from dirmngr.
+
2002-06-25 Steffen Hansen <steffen@hrhansen.dk>
* cryptplug.h, gpgmeplug.c: New function importCertificate() for importing a
dont free() it, the struct will be reused
by the next call to nextCertificate()
}
- endListCertificates( it );
+ int truncated = endListCertificates( it );
\endverbatim
*/
struct CertIterator*
int
nextCertificate( struct CertIterator*, struct CertificateInfo** result );
-void
+int
endListCertificates( struct CertIterator* );
/*!
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