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 agnutls_session_ttype. 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 π
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
- 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