Missing interface documentation for push/pull functions

Florian Weimer fweimer at bfk.de
Mon Mar 14 12:45:17 CET 2011


* Nikos Mavrogiannopoulos:

> On Mon, Mar 14, 2011 at 12:34 PM, Florian Weimer <fweimer at bfk.de> wrote:
>> The documentation should mention that the functions must return -1
>> (and not any other negative value, especially not GNUTLS error codes)
>> on error, and set errno to a suitable error code.  The calling
>> functions do not handle other negative return values very well.
>
> Which part of the documentation are you referring to?
> I can see that:
> http://www.gnu.org/software/gnutls/manual/html_node/The-transport-layer.html#The-transport-layer
> is pretty clear about that.

The documentation for gnutls_transport_set_push_function and
gnutls_transport_set_pull_function.  I think I'd reported this before,
but I fell into the same trap again. 8-(

-- 
Florian Weimer                <fweimer at bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99




More information about the Gnutls-devel mailing list