gnutls_session_etm_status(3)
β¨ gnutls_session_etm_status β¨
okay bestie, welcome to the gnutls manual, section 3 π this one's short and sweet and honestly kinda iconic β it's the lil function that tells you whether your session managed to negotiate encrypt-then-mac. let's get into it π«Ά
πΈ NAME πΈ
gnutls_session_etm_status β API function π
π SYNOPSIS π
#include <gnutls/gnutls.h>
unsigned gnutls_session_etm_status(gnutls_session_t session);
like, that's the whole vibe. one include, one call, no drama β¨
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ bestie this is literally just agnutls_session_ttype. that's it. that's the argument. hand it your session and let it cook π₯
π DESCRIPTION π
so what does it actually do? it gets you the status of the encrypt-then-mac extension negotiation π
and no, we're not making this up β this is all in accordance to rfc7366 β like, the real spec, the receipts are there, no cap.
π RETURNS π
- Non-zero if the negotiation was successful β
- zero otherwise π
that's the whole test, bestie. truthy = we ate. falsy = we did not eat. periodt.
π¨ reminder: it's non-zero for success, not specifically1. don't go comparing it to1like a rookie, okay? just check truthy/falsy and you're golden π
π REPORTING BUGS π
found something cursed? don't suffer in silence, tell the devs π«Ά
- Report bugs to
<bugs@gnutls.org>π§ - Home page:
https://www.gnutls.orgπ
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others. π
and the legal tea: 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. so like, go off, just keep the receipts π§Ύβ¨
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual π and if the /usr/share/doc/gnutls/ directory does not contain the HTML form, bestie, just visit:
https://www.gnutls.org/manual/
iykyk π
and that's a wrap on this lil page, mwah π it's from gnutls version 3.8.13, and yes, that footer name up there is the same gnutls_session_etm_status you just read about β full circle, main character energy, no notes πΈπβ¨π«Ά
π¦ 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