gnutls_session_get_random(3)
π gnutls_session_get_random(3) π
okay bestie, so this one lives in the gnutls manual β it's the page for gnutls_session_get_random, and it's honestly so chill. no cap. β¨
πΈ NAME πΈ
gnutls_session_get_random β API function π
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
void gnutls_session_get_random(gnutls_session_t session, gnutls_datum_t
* client, gnutls_datum_t * server);
like yes, it's a void function, she returns nothing, she just hands you the pointers. main character energy honestly. π
β ARGUMENTS β
gnutls_session_t sessionβ this is agnutls_session_ttype. the whole vibe lives here, she's the session you're asking about π«Άgnutls_datum_t * clientβ the client part of the random πΈgnutls_datum_t * serverβ the server part of the random π
π DESCRIPTION π
so basically, this function returns pointers to the client and server random fields that get used in the TLS handshake. that's it. that's the whole job. β¨
β οΈ the pointers are NOT to be modified or deallocated. do not touch. do not free. do not pass go. seriously, bestie, they're not yours to own, you're just borrowing the view π
and if a client random value has not yet been established, the output will be garbage. literally garbage. not a cute "oops empty" situation β actual uninitialised nonsense. so check that the handshake actually happened before you go reading this, iykyk π
π§ SINCE π§
3.0 β
π REPORTING BUGS π
found a bug? 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, that's the license, go forth and distribute π
π 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 one came from gnutls version 3.8.13 β go read some randoms responsibly, and remember: borrow the pointers, don't free the pointers. periodt. π
β¨
π¦ 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