gnutls_session_get_data(3)
β¨ gnutls_session_get_data β¨
okay bestie, welcome to the gnutls manual page for gnutls_session_get_data(3) β yes it's a real one, yes it's lowkey iconic, and yes we're getting through it together π
πΈ NAME πΈ
gnutls_session_get_data β it's an API function, bestie. that's the whole name, no notes π
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
int gnutls_session_get_data(gnutls_session_t session, void *
session_data, size_t * session_data_size);
π ARGUMENTS π
gnutls_session_t sessionβ bestie this is literally just agnutls_session_ttype. that's it. that's the vibe π«Άvoid * session_dataβ a pointer to the space where the session is gonna live. you're bringing the container, she's bringing the data β¨size_t * session_data_sizeβ this is the size ofsession_data, OR the function will set it for you. she's flexible like that, main character energy fr fr π
π DESCRIPTION π
so what does she DO? she returns all the session parameters you need to stash away so that resumption actually works later. all of them. into a pre-allocated buffer β meaning you gotta bring the space yourself, she's not out here mallocing for you π
not me telling you again: pre-allocated. YOU allocate. she fills. that's the deal π
want more deets? go read gnutls_session_get_data2(), she spills the tea way more than this one does β
β RETURNS β
on success you get GNUTLS_E_SUCCESS (which is 0, slay), otherwise you get an error code. simple as that, no cap π
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, report it to <bugs@gnutls.org>.
home page energy right here: 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. (yes you can share it, yes you still gotta 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!! π written for gnutls version 3.8.13 β go forth and resume those sessions, you absolute icon π¦πβ¨
π¦ 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