gnutls_supplemental_register(3)
π gnutls_supplemental_register(3) β the gnutls manual, bestie edition π
okay so you're reading the gnutls manual, and today's main character is gnutls_supplemental_register(3). she registers supplemental data types. it's giving β¨custom handshake extensionsβ¨. let's get into it π«Ά
πΈ NAME πΈ
gnutls_supplemental_register β an API function, no cap
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
int gnutls_supplemental_register(const char * name,
gnutls_supplemental_data_format_type_t type, gnutls_supp_recv_func
recv_func, gnutls_supp_send_func send_func);
π ARGUMENTS π
const char * nameβ the name of the supplemental data you wanna register, bestie πgnutls_supplemental_data_format_type_t typeβ the type of the supplemental data format, iconicgnutls_supp_recv_func recv_funcβ the function that receives the data π₯gnutls_supp_send_func send_funcβ the function that sends the data π€
π¦ DESCRIPTION π¦
so this function registers a brand new supplemental data type (rfc4680, iykyk). the data you register just stays registered until gnutls_global_deinit() gets called β it's committed, it's loyal, it's not going anywhere π₯Ή
the type you hand over has to be an unassigned type inside gnutls_supplemental_data_format_type_t. and if that type is already registered, or GnuTLS is already handling it internally, you get GNUTLS_E_ALREADY_REGISTERED back. like, sorry babe, taken π
β οΈ this function is not thread safe. and bc supplemental data isn't defined under TLS 1.3, calling this will disable TLS 1.3 support globally. yes, globally. the whole vibe. lowkey devastating but that's the deal π
π RETURNS π
GNUTLS_E_SUCCESS on success, otherwise a negative error code. simple as that, periodt β¨
β SINCE β
3.4.0 β she's been around a minute, respect the elder π«‘
π REPORTING BUGS π
found a bug? don't be shy, tell the devs:
- 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. slay, honestly π
π§ 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/
and that's the whole page, bestie!! you just read gnutls_supplemental_register(3) from the gnutls manual, version 3.8.13, Β© 2001-2023 Free Software Foundation, Inc. and others. go forth and register responsibly πβ¨ππ¦πΈπ
π«Ά
π¦ 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