gnutls_record_...early_data_size(3)

🌸 gnutls_record_set_max_early_data_size ✨

okay bestie, so this is a page from the gnutls manual, and today's main character is gnutls_record_set_max_early_data_size β€” an API function, no cap πŸ’…


πŸŽ€ NAME πŸŽ€

gnutls_record_set_max_early_data_size β€” literally just an API function, that's the whole name, periodt.


✨ SYNOPSIS ✨

#include <gnutls/gnutls.h>

int gnutls_record_set_max_early_data_size(gnutls_session_t session,
size_t size);

🫢 ARGUMENTS 🫢

  • gnutls_session_t session β€” bestie, this is a gnutls_session_t type. that's the vibe. it's the session, it's giving session energy πŸ¦‹
  • size_t size β€” this is the new size. the new one. the fresh one. slay.

πŸ’– DESCRIPTION πŸ’–

so the way this works: this function sets the maximum early data size in this connection. 🌈

not me dropping a plot twist though β€” this property can only be set to servers. servers only, iykyk. the client doesn't get to set it directly; instead the client may be provided with the maximum allowed size through the "early_data" extension of the NewSessionTicket handshake message. so the server's the one handing out the info, and the client just receives it like a little gift 🎁✨


πŸ’€ RETURNS πŸ’€

on success, GNUTLS_E_SUCCESS (0) is returned. otherwise? a negative error code comes back at you 😭 that's the whole mood. 0 = we ate. negative = we did not eat.


⭐ SINCE ⭐

3.6.4 β€” an icon, an OG, been here since 3.6.4 πŸ‘‘


πŸ“ REPORTING BUGS πŸ“

found a bug? don't be shy, report it to <bugs@gnutls.org> 🫢

home page, for the curious besties: https://www.gnutls.org


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. so like. share it. remix it. just keep the receipts πŸ’–


🌸 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, then bestie, go visit:

https://www.gnutls.org/manual/

okay that's the whole page, mwah πŸ’‹ this came out of gnutls version 3.8.13, and yeah the manpage header's got that gnutls_record_...early_data_size(3) energy going on up top β€” consider it mentioned, consider it iconic, consider it done βœ¨πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from