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