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 a gnutls_session_t type. 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:

they actually want to hear it, bestie. it's not a vibe killer, it's a public service πŸ’–


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