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 agnutls_session_ttype. 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:
- report bugs to <bugs@gnutls.org>
- home page: https://www.gnutls.org
(be nice, they're doing their best π«Ά)
π 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. (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
- 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