gnutls_session_get_flags(3)

✨ gnutls_session_get_flags(3) ✨

okay bestie, so this one lives in the gnutls manual and it's literally the vibe check for your current session 🫢


🌸 NAME 🌸

gnutls_session_get_flags β€” an API function, and yes it does exactly what it says on the tin πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/gnutls.h>

unsigned gnutls_session_get_flags(gnutls_session_t session);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_session_t session β€” bestie, this is a gnutls_session_t type. that's it, that's the whole thing ✨

πŸ’– DESCRIPTION πŸ’–

so this function returns a whole series of flags (ORed together, iykyk) that apply to the current session. one call, all the tea β˜•

and here's the slay part: this one function replaces all those individual informational girlies you used to have to ask one by one, like gnutls_safe_renegotiation_status(), gnutls_session_ext_master_secret_status(), etc. no cap. they're all bundled up in here now πŸŽ€


⭐ RETURNS ⭐

an ORed sequence of flags β€” go look at gnutls_session_flags_t for the full roster πŸ‘‘


🌈 SINCE 🌈

3.5.0 β€” a true classic, been iconic since day one fr fr


πŸ› REPORTING BUGS πŸ›

found a bug? not the vibe. tell the gnutls people, they're lovely:


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. (so like, take it, 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, visit:

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

okay that's the whole page, you ate that πŸ“

this was the gnutls_session_get_flags(3) page from the gnutls manual, version 3.8.13 β€” mwah, go forth and flag responsibly bestie πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from