gnutls_auth_get_type(3)

πŸ’– gnutls_auth_get_type(3) πŸ’–

okay bestie, welcome to the gnutls manual, page gnutls_auth_get_type(3) β€” yes that's the manual name, we're doing the whole gnutls thing. sit down, hydrate, let's go ✨


🌸 NAME 🌸

gnutls_auth_get_type β€” API function πŸŽ€


✨ SYNOPSIS ✨

#include <gnutls/gnutls.h>

gnutls_credentials_type_t gnutls_auth_get_type(gnutls_session_t
session);

like, that's the whole vibe. one function, one arg, one return type πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_session_t session β€” bestie this is a gnutls_session_t type. that's it. that's the arg. it's giving "I just need the session and I'll tell you everything" 🫢

πŸ’œ DESCRIPTION πŸ’œ

so what does it do. it returns the type of credentials for the current authentication schema. that returned info is literally there so you can figure out which function you're supposed to use to access the authentication data. no cap. πŸ”₯

eg. for CERTIFICATE ciphersuites β€” that's key exchange algorithms GNUTLS_KX_RSA and GNUTLS_KX_DHE_RSA β€” the same function is what you use to access the authentication data. iconic behavior honestly.

⚠️ note note note: on resumed sessions, this function returns the schema used in the original session authentication. not the resumed one. the original one. periodt πŸ’€

🌈 RETURNS 🌈

the type of credentials for the current authentication schema β€” a gnutls_credentials_type_t type. that's your answer, that's the whole gift 🎁


πŸ› REPORTING BUGS πŸ›

found a bug?? not you being the main character of quality assurance πŸ’… 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, keep the notice, everyone eats πŸ“


πŸŽ€ 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/

iykyk, go read the manual bestie, it's the full thing πŸ“šβœ¨


okay that's the page!! this was gnutls version 3.8.13 of gnutls_auth_get_type(3), and yeah the copyright runs 2001-2023, mwah πŸ’‹ thanks for reading, go call this function and be free πŸ§šπŸ’–

πŸ“¦ where this page comes from