gnutls_session_channel_binding(3)

πŸ’– gnutls_session_channel_binding β€” the gnutls manual, bestie edition πŸ’–

okay so this one lives in the gnutls manual, and it's literally the function that pulls out your channel binding data. yes, that channel binding. the one your TLS-obsessed mutuals keep talking about. iykyk πŸ¦‹


✨ NAME ✨

gnutls_session_channel_binding β€” API function πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

int gnutls_session_channel_binding(gnutls_session_t session,
gnutls_channel_binding_t cbtype, gnutls_datum_t * cb);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” bestie, this is a gnutls_session_t type. that's it, that's the whole vibe.
  • gnutls_channel_binding_t cbtype β€” an gnutls_channel_binding_t enumeration type. so like, the flavour of binding you're asking for.
  • gnutls_datum_t * cb β€” output buffer array with data. the lil container where your data ends up living. 🫢

πŸ’œ DESCRIPTION πŸ’œ

Extract given channel binding data of the cbtype (e.g., GNUTLS_CB_TLS_UNIQUE) type. periodt. that's the whole thing β€” you hand it the type you want, it hands you the data. iconic behaviour honestly.


⭐ RETURNS ⭐

  • GNUTLS_E_SUCCESS β€” on success. we love a win. πŸŽ‰
  • GNUTLS_E_UNIMPLEMENTED_FEATURE β€” if the cbtype is unsupported. not me asking for a binding that doesn't exist 😭
  • GNUTLS_E_CHANNEL_BINDING_NOT_AVAILABLE β€” if the data is not currently available. like, it's not here rn, try again later.
  • or an error code. (yes, generically. an error code. that's the deal.)

πŸ¦‹ SINCE πŸ¦‹

2.12.0 β€” she's been around a while, she's a classic, no cap. πŸ‘‘


πŸ“ 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 Β© 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. fr fr, go wild with 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 πŸ’– this was gnutls version 3.8.13 of gnutls_session_channel_binding(3) β€” go forth and bind those channels, you absolute main character. slay. βœ¨πŸ’…πŸŒΈ

πŸ“¦ where this page comes from