gnutls_mac_get_id(3)

✨ NAME ✨

gnutls_mac_get_id β€” bestie, this is literally just an API function that turns a MAC algorithm name into its id πŸ’–

It lives in the gnutls manual, and yeah, we're doing the whole page together, so buckle up πŸŽ€


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

gnutls_mac_algorithm_t gnutls_mac_get_id(const char * name);

That's the whole thing, no cap. One include, one function, one argument πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • const char * name β€” the name of a MAC algorithm, as a lil string. That's it, that's the assignment πŸ’…

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: you hand it a string, and it converts that string into a gnutls_mac_algorithm_t value for you ✨

And the way it matches names? case insensitive. So like, go off with your capitalisation, it genuinely does not care. Uppercase, lowercase, whatever vibe you're feeling β€” it's giving equal treatment, periodt πŸ‘‘


🌈 RETURNS 🌈

  • 🫢 A gnutls_mac_algorithm_t id of the MAC algorithm string you passed in.
  • 😭 Or, if it doesn't work out, GNUTLS_MAC_UNKNOWN. That's the failure state, bestie. Not a vibe, but it happens.

πŸ› REPORTING BUGS πŸ›

Found a bug? Not me gatekeeping that info β€” go tell the gnutls girlies directly:

They want to hear from you, fr fr 🫢


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 yes, you can share this around, just keep the receipts, iykyk πŸ’…


πŸ¦‹ 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/

The whole manual is right there waiting for you, go read it, it's iconic πŸ“šβœ¨


ngl if you read the entire manual you become the main character of your own system 🌟

gnutls_mac_get_id β€” straight out of the gnutls manual, version 3.8.13 πŸ’– Hope this helped, bestie, slay responsibly πŸŽ€πŸ’…

πŸ“¦ where this page comes from