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_tid 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:
- Report bugs to
<bugs@gnutls.org>π§ - Home page:
https://www.gnutls.orgπ
They want to hear from you, fr fr π«Ά
π COPYRIGHT π
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
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms