[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gnutls] Re: Certificate list size in `gnutls_certificate_get_peers
From: |
Simon Josefsson |
Subject: |
[Help-gnutls] Re: Certificate list size in `gnutls_certificate_get_peers ()' |
Date: |
Wed, 11 Apr 2007 15:27:16 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
address@hidden (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] Certificate list size in `gnutls_certificate_get_peers ()', Ludovic Courtès, 2007/04/11
- [Help-gnutls] Re: Certificate list size in `gnutls_certificate_get_peers ()',
Simon Josefsson <=
- [Help-gnutls] Re: Certificate list size in `gnutls_certificate_get_peers ()', Ludovic Courtès, 2007/04/11
- [Help-gnutls] Re: Certificate list size in `gnutls_certificate_get_peers ()', Simon Josefsson, 2007/04/12
- [Help-gnutls] Re: Certificate list size in `gnutls_certificate_get_peers ()', Ludovic Courtès, 2007/04/12
- [Help-gnutls] Re: Certificate list size in `gnutls_certificate_get_peers ()', Simon Josefsson, 2007/04/12
- [Help-gnutls] Re: Certificate list size in `gnutls_certificate_get_peers ()', Ludovic Courtès, 2007/04/12
- [Help-gnutls] Re: Certificate list size in `gnutls_certificate_get_peers ()', Simon Josefsson, 2007/04/12