gnutls_record_get_max_size(3)
π gnutls_record_get_max_size β¨
okay bestie, we're diving into gnutls (that's the GNU TLS library, the whole vibe) and today's main character is gnutls_record_get_max_size. yes, the name is long. yes, it's iconic. let's go π«Ά
πΈ NAME πΈ
gnutls_record_get_max_size β it's an API function, bestie. that's the whole job description π
π SYNOPSIS π
#include <gnutls/gnutls.h>
size_t gnutls_record_get_max_size(gnutls_session_t session);
look at that. clean. simple. slaying. β¨
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ bestie this is agnutls_session_ttype. that's it. that's the arg. it's giving "one job, done flawlessly" π
π DESCRIPTION π
so like, this one literally just gets the record size for you. no cap. π
and here's the tea: the maximum record size is negotiated by the client after the first handshake message. so it's not you picking it, it's not the server picking it β the client does the negotiating once that first handshake message has happened. iykyk π€
β RETURNS β
it hands you back the maximum record packet size in this connection. that's the return value, fr fr. π
π REPORTING BUGS π
found something cursed? not me gatekeeping β go tell the devs:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
they actually want to hear it, bestie. it's not a vibe killer, it's a public service π
π 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.
(translation: use it, share it, remix it β just keep the receipts. periodt. π )
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual. if the /usr/share/doc/gnutls/ directory does not have the HTML form, then bestie, you gotta go here instead:
https://www.gnutls.org/manual/
and that's the whole page, no crumbs left π stay curious, stay encrypted, and remember: the client negotiates the record size after the first handshake message. that's the takeaway. mwah π
signing off from the gnutls manual, version 3.8.13, brought to you by the gnutls crew β see you in the next manpage, bestie πβ¨π¦
π¦ 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