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 fr
  • gnutls_supplemental_data_format_type_t type β€” the type of the supplemental data format, iykyk
  • gnutls_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 Β© 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