gnutls_handshake_get_last_out(3)

πŸ’– gnutls_handshake_get_last_out β€” bestie edition πŸ’–

okay so this one lives in the gnutls manual (that's section 3, the library functions girlies), and it's literally called gnutls_handshake_get_last_out. it's an API function, no cap. let's get into it 🫢


✨ SYNOPSIS ✨

like, the whole vibe in code form:

#include <gnutls/gnutls.h>

gnutls_handshake_description_t
gnutls_handshake_get_last_out(gnutls_session_t session);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” bestie this is just a gnutls_session_t type. that's it. that's the whole thing. it's your session. your main character. πŸ’…

🌸 DESCRIPTION 🌸

okay so real talk β€” this function is ONLY useful for one thing: checking where the last handshake that actually happened went wrong and gave up. it's giving detective energy πŸ”

and here's the catch, and it's a big one: if the previous handshake succeeded, or if there was no handshake at all, then you're not getting anything meaningful back. nada. nothing. the value is just... not it. so don't be out here reading tea leaves from a return value that means nothing, okay? 😭

if you wanna know what handshake descriptions are even available to you, go peek at gnutls_handshake_description_t in gnutls.h. that's where the whole menu lives πŸ“œβœ¨


⭐ RETURNS ⭐

the last handshake message type that got sent. and the type of that value? a gnutls_handshake_description_t. iconic. periodt πŸ’…


πŸ› REPORTING BUGS πŸ›

found a bug? spill it, bestie, they wanna know:

(be nice, they're doing their best 🫢)


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. (translation: go off, share it, just 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, then bestie just go here instead:

https://www.gnutls.org/manual/

iykyk πŸ“–πŸ’–


lowkey reminder: this whole thing only tells you anything when a handshake failed. successful handshake? no handshake? the value is meaningless. do not build your personality around it πŸ™ˆ

mwah, that's the whole page πŸ¦‹ this was gnutls version 3.8.13, brought to you by the gnutls crew β€” take care of yourselves, hydrate, and check your return values, besties πŸ’œπŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from