[Help-gnutls] Large Data Support through Gnu TLS

Florian Weimer fweimer at bfk.de
Thu Nov 8 12:07:28 CET 2007

* Pavan Puri:

> We are trying to send large (upto 2 MB) through gnu TLS using the API
> gnutls_record_send().
> This API is failing to send data over 16384 bytes.

You need to check the return value and keep sending the remaining part
of the buffer in a loop, just like you would do when you use write()
or send() on a TCP socket.

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-help mailing list