gnutls_handsha...vate_extensions(3)

πŸ’– gnutls_handshake_set_private_extensions β€” the manual page bestie πŸ’–

okay so you're reading the gnutls manual, section gnutls_handsha...vate_extensions(3), and we're gonna talk about gnutls_handshake_set_private_extensions β€” yes it's an API function, yes the name is long, no we are not scared of it 🫢


✨ NAME ✨

gnutls_handshake_set_private_extensions β€” an API function, bestie. that's the whole name. it's giving "long but iconic" πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

void gnutls_handshake_set_private_extensions(gnutls_session_t session,
       int allow);

that's it. that's the whole thing. no return value, no drama (well, some drama, see DESCRIPTION πŸ‘€).


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” bestie this is a gnutls_session_t type. it's your session. your main character. 🌟
  • int allow β€” an integer, and it's literally just 0 or 1. binary queen. no in-between, no "maybe", no "it's complicated" πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does this actually do. this function turns the use of private cipher suites on or off β€” and by "private cipher suites" we mean the ones that start with 0xFF. iykyk. πŸ”₯

by default, OR if allow is 0, those cipher suites will not be advertised and will not be used. so the chill, do-nothing, default vibe is: they're off. periodt. πŸ’…

now for the part where i have to be real with you: currently GnuTLS does not include such cipher-suites or compression algorithms. so like... the feature exists, the switch exists, but the actual private cipher suites and compression algorithms? not in the box. not me finding out it's a feature flag for nothing 😭

⚠️ and here's the big one, bestie: enabling the private ciphersuites when talking to other than gnutls servers and clients may cause interoperability problems. like, handshake go brrr in a bad way. so don't just flip it to 1 for funsies. 🌈

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? spill it. report bugs to bugs@gnutls.org.

home page: https://www.gnutls.org β€” go say hi, it's cute over there 🏠✨


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, take it, share it, remix it β€” just keep the receipts, bestie πŸ§ΎπŸ’–


πŸ’œ 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 forth and read. the docs are there, the lore is deep πŸ“šπŸ¦‹


and that's the whole page, no cap. this was gnutls version 3.8.13, page gnutls_handsha...vate_extensions(3), and honestly? ate. go set your extensions responsibly, babe πŸ’…πŸŒΈβœ¨

πŸ“¦ where this page comes from