[Help-gnutls] Re: Certificate list size in `gnutls_certificate_get_peers ()'

Ludovic Courtès ludovic.courtes at laas.fr
Thu Apr 12 11:28:30 CEST 2007


Simon Josefsson <simon at josefsson.org> writes:

> 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?

Yes, good idea.

Eventually, it might be worth choosing either one approach or the other
(i.e., null-terminated or LIST_SIZE argument) for both functions, for
the sake of consistency (maybe in the next API-breaking version?).


More information about the Gnutls-help mailing list