GNUTLS_SESSION_SUPPLEMENTAL_REGISTER(3)
β¨ gnutls_session_supplemental_register(3) β¨
okay bestie, welcome to the gnutls manual π
this is the page for gnutls_session_supplemental_register, and yes the title got cropped to gnutls_session_...mental_register(3) which is giving "my name is too long for this terminal" energy π but we move.
πΈ NAME πΈ
gnutls_session_supplemental_register β an API function, periodt β¨
π SYNOPSIS π
#include <gnutls/gnutls.h>
int gnutls_session_supplemental_register(gnutls_session_t session, const
char * name, gnutls_supplemental_data_format_type_t type,
gnutls_supp_recv_func recv_func, gnutls_supp_send_func send_func,
unsigned flags);
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ the session you're registering this for, like the specific group chat this whole thing lives in π¬const char * nameβ the name of the supplemental data you're registering, its little government name frgnutls_supplemental_data_format_type_t typeβ the type of the supplemental data format, iykykgnutls_supp_recv_func recv_funcβ the function that receives the data π₯gnutls_supp_send_func send_funcβ the function that sends the data π€unsigned flagsβ must be zero. zero. not one, not a vibe, ZERO π ββοΈ
π DESCRIPTION π
so this function will register a new supplemental data type (rfc4680) β¨ the registered supplemental functions will be used for that specific session β so like, this session only, no spilling into other sessions, main character energy only.
the type you hand over must be an unassigned type in gnutls_supplemental_data_format_type_t. no stealing a type that's already taken bestie.
if the type is already registered, or if it's handled by GnuTLS internally, you get GNUTLS_E_ALREADY_REGISTERED back. not a slay, just a fact.
β οΈ and listen β since supplemental data are not defined under TLS 1.3, this function will disable TLS 1.3 support for the given session. like, full-on off. so if you were counting on 1.3 for that session... you're not anymore π
π RETURNS π
GNUTLS_E_SUCCESS on success π otherwise a negative error code π
β SINCE β
3.5.5 β she's been iconic since day one π«Ά
π REPORTING BUGS π
found a bug? don't be shy, report it 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. (basically: share it, just keep the receipts π§Ύπ)
π₯ 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, no cap π stay registered, stay unassigned, and stay off TLS 1.3 for that one session π
gnutls 3.8.13 β that's the version, that's the vibe, bye β¨π¦πΈ
π¦ 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