gnutls_mac_get_name(3)

✨ gnutls_mac_get_name(3) ✨

okay bestie, so this one lives in the gnutls manual, and it's literally the cutest little lookup function. it's an API function, and its whole job is turning a MAC algorithm value into a name you can actually read. πŸŽ€


🌸 NAME 🌸

gnutls_mac_get_name β€” API function (yes that's the whole vibe, she's a name-getter πŸ’…)


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

const char * gnutls_mac_get_name(gnutls_mac_algorithm_t algorithm);

πŸ’– ARGUMENTS πŸ’–

  • gnutls_mac_algorithm_t algorithm β€” bestie this is a MAC algorithm. that's it, that's the whole argument, she takes one (1) MAC algorithm and nothing else 🫢

✨ DESCRIPTION ✨

Convert a gnutls_mac_algorithm_t value to a string. that's the entire plot. you hand her the enum, she hands you back the name, no cap. 🌈


πŸ‘‘ RETURNS πŸ‘‘

a string that contains the name of the specified MAC algorithm, or NULL. so like… if she doesn't know it, you get NULL, and you should probably check for that fr fr 😭


πŸ’€ REPORTING BUGS πŸ’€

found something cursed? report bugs to <bugs@gnutls.org>.

home page: https://www.gnutls.org β€” go say hi πŸ¦‹


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. (iconic behaviour honestly, very generous of them πŸ’œ)


🧚 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/

and that's the whole page, bestie!! this was gnutls version 3.8.13, page gnutls_mac_get_name(3), and you absolutely ate this reading session. go get that algorithm name, NULL-check it, and slay πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from