[gnutls-devel] GnuTLS | add support for 0-RTT (!775)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Oct 29 13:51:17 CET 2018


Nikos Mavrogiannopoulos started a new discussion on lib/record.c:

> + * @data: contains the data to send
> + * @data_size: is the length of the data
> + *
> + * This function has the similar semantics with gnutls_record_send().
> + * The difference is that the data will be sent as early data, and
> + * thus this function must be called before gnutls_handshake() by the
> + * client.
> + *
> + * Returns: The number of bytes sent, or a negative error code.  The
> + *   number of bytes sent might be less than @data_size.  The maximum
> + *   number of bytes this function can send in a single call depends
> + *   on the negotiated maximum record size.
> + *
> + * Since: 3.6.5
> + **/
> +int gnutls_record_send_early_data(gnutls_session_t session,

shouldn't return type be `ssize_t` here, since the sent data is of type `size_t`?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/775#note_112778635
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181029/c355eba1/attachment.html>


More information about the Gnutls-devel mailing list