gnutls_session_set_id(3)
π gnutls_session_set_id β ok bestie, listen up
so this is a page from the gnutls manual, and we're talking about gnutls_session_set_id, which is lowkey a β¨specialistβ¨ function. iykyk.
πΈ NAME πΈ
gnutls_session_set_id β API function. that's it, that's the name, she's giving exactly what she says on the tin π
π SYNOPSIS π
#include <gnutls/gnutls.h>
int gnutls_session_set_id(gnutls_session_t session, const gnutls_datum_t
*sid);
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ bestie this is agnutls_session_ttype. that's the whole vibe.const gnutls_datum_t * sidβ the session identifier, aka the little name tag your session wears π
β¨ DESCRIPTION β¨
okay so what does she do. this function sets the session ID that gets used in a client hello. periodt. π
but real talk β this is a function intended for exceptional uses. do not use this function unless you are implementing a custom protocol. like, genuinely. this is not a casual lil function, it's giving "i am building something very specific and i know exactly what i'm doing" energy.
if what you actually want is to set session resumption parameters, use gnutls_session_set_data() instead. that's the one you want, bestie. don't come for this one π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise, an error code is returned. so like, check your return values, fr fr.
π SINCE π
3.2.1 β she's been here a minute, an icon, a legend π
π«Ά REPORTING BUGS π«Ά
found a bug? not me gatekeeping β 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. slay, and also legally binding π
π 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/
ok that's the whole page, you ate that π go forth and set your session ids responsibly (or don't, unless you're implementing a custom protocol, remember!!)
signing off with love from gnutls 3.8.13 β mwah, bye bestie πβ¨π¦
π¦ 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