[EMAIL PROTECTED] (Ludovic Courtès) writes:

> Hi,
>
> Why does `gnutls_certificate_get_peers ()' have a LIST_SIZE parameter
> that `gnutls_certificate_get_ours ()' doesn't have?  How is it supposed
> to be used (I haven't used X.509 certificates so far)?
>
> AFAIU, this parameter tells the size of the certificate chain that is
> returned when X.509 certificates are used, and both functions are said
> to return a "list of certificates" anyway.

Hi!  The `gnutls_certificate_get_peers' function returns an array of
gnutls_datum_t's, and the array is LIST_SIZE long.  LIST_SIZE is an
output variable.  Each gnutls_datum_t correspond to a X.509
certificate.

It is probably a mistake that `gnutls_certificate_get_ours' does not
return a LIST_SIZE parameter too.  Do you need that functionality?
Maybe we can add a new API to get the entire list, and a LIST_SIZE
parameter.

/Simon


_______________________________________________
Help-gnutls mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnutls

Reply via email to