gnutls_sec_param_get_name(3)

πŸ’– gnutls_sec_param_get_name(3) πŸ’–

okay bestie, so this one lives in the gnutls manual (yeah, the whole manual, it's a big deal) and it's literally the cutest lil lookup function in the whole library. let me put you on.


✨ NAME ✨

gnutls_sec_param_get_name β€” it's an API function, periodt πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

const char * gnutls_sec_param_get_name(gnutls_sec_param_t param);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_sec_param_t param β€” bestie. it's a security parameter. that's the whole vibe. that's what you're handing over. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically it takes a gnutls_sec_param_t value and converts it to a string. that's it. that's the function. it's giving translator, it's giving "let me tell you what this enum is actually called in human words". iconic behavior fr fr ✨


⭐ RETURNS ⭐

it hands you back a pointer to a string containing the name of the security level you asked about. and if it doesn't know? NULL. no name, no vibe, just NULL. 😭


🌈 SINCE 🌈

2.12.0 β€” yeah it's been around a minute, lowkey a legend πŸ‘‘


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not me being the one to find it but okay. report it to <bugs@gnutls.org>.

home page is right here: 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. (so like, go off, just keep the receipt 🧾)


πŸ“ 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/

ngl the whole "if the dir doesn't have the HTML, go to the website" thing is so real of them πŸ™ˆ

and that's the page, bestie!! sign-off time: this was gnutls 3.8.13 and it's the gnutls_sec_param_get_name(3) page, mwah πŸ’‹ go read some more manpages, i'm obsessed with you πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from