gpgme keylist truncation

Werner Koch wk at
Wed Jun 12 18:25:01 CEST 2002


In certain situation a backend (like gpgsm accessing an LDAP server)
may choose not to deliver all matching certificates/keys but truncate
the listing.  It is important to get this information so I wonder what
the best way to do tjis is.

Currently (aehhm, since and hour) you can retrieve this information by
grepping through gpgme_get_op_info().  This won't break anything it
having this meta information may be a good thing anyway.  

The other option would be to end the operation with a special error
code instead of GPGME_EOF - however this might break some applications
as it requires additional error code handling.  OTOH it might be
better to let the key listing fail in that case becuase the caller
expects to see all matching keys.

Any comments?



More information about the Gnupg-devel mailing list