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 a gnutls_session_t type. 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 of session_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 Β© 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