gnutls_record_send_early_data(3)
π gnutls_record_send_early_data β API function π
okay bestie, welcome to the gnutls manual, section 3 π this one's all about gnutls_record_send_early_data(3) and it's lowkey iconic. let's get into it β¨
πΈ NAME πΈ
gnutls_record_send_early_data β API function π
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
ssize_t gnutls_record_send_early_data(gnutls_session_t session, const
void * data, size_t data_size);
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ bestie this is literally agnutls_session_ttype, that's the whole vibe π«Άconst void * dataβ this holds the data you wanna send, no cap π¦size_t data_sizeβ and this is the length of that data, periodt π
π DESCRIPTION π
So here's the tea π: a client can use this function to send data early in the handshake process, specifically when it's resuming a session. It's giving zero-roundtrip (0-RTT) mode, and honestly? obsessed. πβ¨
It has the exact same semantics as gnutls_record_send() β same energy, different timing π
β οΈ Heads up bestie: there may be a limit to how much data you can send as early data. Usegnutls_record_get_max_early_data_size()to check that limit before you go feral. And if you exceed the limit? This function returnsGNUTLS_E_RECORD_LIMIT_REACHEDππ
π₯ RETURNS π₯
It hands you back the number of bytes sent, or a negative error code if things went sideways π
Real talk though: the number of bytes sent might be less than data_size. And the max number of bytes this function can send in a single call depends on the negotiated maximum record size. iykyk π§
β SINCE β
3.6.5 β a classic, been around forever, main character energy π
π REPORTING BUGS π
Found a bug? Don't be shy, report it to <bugs@gnutls.org>. π
Home page: https://www.gnutls.org
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. π«Ά (yes bestie, that means you can share it, slay)
π SEE ALSO π
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, go visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie! π
β¨ this lil legend comes to you from gnutls version 3.8.13, and yeah, it's the gnutls_record_send_early_data(3) page, iconic as ever. go forth and send that early data responsibly π¦πΈπ
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms