gnutls_session...t_enable_server(3)
π gnutls_session_ticket_enable_server(3) β the gnutls manual, but make it cute π
okay bestie, welcome to the gnutls manual page for gnutls_session_ticket_enable_server, straight out of section 3 of the gnutls docs. this is the API function energy you came for, and we're gonna read it together like it's a group chat. grab a strawberry π and let's go.
β¨ NAME β¨
gnutls_session_ticket_enable_server β it's an API function, that's literally the whole vibe. π
πΈ SYNOPSIS πΈ
okay so here's the spell you gotta cast:
#include <gnutls/gnutls.h>
int gnutls_session_ticket_enable_server(gnutls_session_t session, const
gnutls_datum_t * key);
like yes, it's a function that returns an int, and yes, that include is non-negotiable. π
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ bestie this is literally just agnutls_session_ttype. that's it. that's the whole thing. it's the session you're working with. π«Άconst gnutls_datum_t * keyβ the key used to encrypt session parameters. protect it like it's your main character secret. π
π DESCRIPTION π
okay so the actual tea: you're asking the server to try session resumption using session tickets β which basically means delegating the storage to the client. the server doesn't wanna hold all that, so it hands the ticket over. slay, efficient, iconic. β¨
that key you pass in? it must be initialized using gnutls_session_ticket_key_generate(). no shortcuts, no DIY, use the function. π₯
β οΈ and listen β to avoid leaking that key, use gnutls_memset() prior to releasing it. like, wipe it. don't leave your key lying around for just anybody, that's not the vibe. π
also, the default ticket expiration time can be overridden using gnutls_db_set_cache_expiration(). so if you want a different expiry, that's your girl. π
β RETURNS β
on success you get GNUTLS_E_SUCCESS (which is 0), or an error code. so check it, bestie. don't just assume. π
π SINCE π
2.10.0 β this has been around since way before it was cool. vintage. π
π REPORTING BUGS π
found a bug? don't be shy, report it to <bugs@gnutls.org>. π§
home page: https://www.gnutls.org β go say hi. π
π 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. so yes, you can share it, just keep the receipts. periodt. πβ¨
π§ 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, go visit:
https://www.gnutls.org/manual/
that's your one-stop shop, iykyk. π
and that's a wrap, bestie π«Ά this was gnutls 3.8.13, page gnutls_session_ticket_enable_server(3). go encrypt responsibly and hydrate. π
π
π¦ 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