[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: |
Thu, 12 Apr 2007 10:58:17 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
>> 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.
>
> Since one can hardly traverse the certificate array without knowing its
> size, LIST_SIZE should probably be provided by
> `gnutls_certificate_get_ours' too (or perhaps
> `gnutls_certificate_get_ours2'?).
I just realized that we can solve it without an ABI/API change: just
make the array zero-terminated. You'll have to traverse the list in
order to find out its size, but perhaps that is not so much trouble.
What do you think?
> Actually, I'm writing Guile bindings for GnuTLS, hence my question.
> Otherwise, since I've been using mostly OpenPGP certificates so far, so
> I didn't really feel concerned with the meaning of LIST_SIZE. ;-)
Understood.
/Simon