gnutls_record_disable_padding(3)

✨ gnutls_record_disable_padding(3) β€” the gnutls manual, bestie edition ✨

okay so you're in the gnutls manual section 3, and today's main character is gnutls_record_disable_padding. she's an API function. she's also, and I say this with love, kinda retired. let's get into it πŸ’…


🌸 NAME 🌸

gnutls_record_disable_padding β€” API function


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

void gnutls_record_disable_padding(gnutls_session_t session);

like look at her. returns nothing. takes one thing. no notes. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” bestie this is literally just a gnutls_session_t type. that's the whole thing. it's your session. your vibe. your girl. 🫢

πŸ’– DESCRIPTION πŸ’–

So what does she do? She's used to disable padding in TLS 1.0 and above. That's it. That's the job.

Now β€” real talk β€” normally you do not need to call this function. Like, at all. It exists for one very specific chaotic situation: there are buggy clients out there that will straight up complain if a server pads the encrypted data. So if you're dealing with one of those, this is your escape hatch.

⚠️ But hear me when I say this: doing that of course disables protection against statistical attacks on the data. You are literally removing a security feature. It's giving "taking off your seatbelt because the car beeps too loud." πŸš—πŸ’€

And here's the tea: this function is defunct since 3.1.7. Random padding is disabled by default anyway, unless you specifically request it using gnutls_record_send_range(). So like… she's been sitting in the manpage this whole time, iconic, but not really doing much anymore. no cap.


😭 REPORTING BUGS 😭

Found a bug? (not me manifesting one πŸ™ˆ) Report bugs to:

<bugs@gnutls.org>

Home page: 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. periodt. πŸ’œ


πŸ”₯ 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, visit

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

go read it, it's giving ✨ knowledge ✨


🌈 and that's the whole page bestie!! this one came from gnutls version 3.8.13, page gnutls_record_disable_padding(3) β€” she's an old soul, defunct since 3.1.7, and honestly? still ate. mwah πŸ’‹ πŸŽ€

πŸ“¦ where this page comes from