gnutls_digest_get_id(3)
π gnutls_digest_get_id(3) π
okay so bestie, this is a page from the gnutls manual, and it's literally just one tiny little function that turns a name into a number. short and sweet, but we're gonna give it the main character treatment anyway β¨
β¨ NAME β¨
gnutls_digest_get_id β it's an API function, and it's giving "glorified lookup table" in the best possible way π«Ά
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
gnutls_digest_algorithm_t gnutls_digest_get_id(const char * name);
like. that's it. that's the whole vibe. one include, one call, one return value π
π ARGUMENTS π
const char * nameβ this is a digest algorithm name, so it's the string you're handing over to get looked up. the good stuff, the actual label you wanna convert π
π¦ DESCRIPTION π¦
so what does it DO? it converts a string into a gnutls_digest_algorithm_t value. that's the whole thing. string in, digest algorithm enum out, no cap π
and the little detail that matters: the names are compared in a case insensitive way. so like, don't stress about your capitalization bestie, it literally does not care. SHA256, sha256, ShA256 β all the same to it, periodt β¨
β RETURNS β
you get back a gnutls_digest_algorithm_t id of the specified MAC algorithm string. and if it doesn't recognize what you gave it? you get GNUTLS_DIG_UNKNOWN on failure π no exceptions, no drama, just a polite little "idk her" constant.
ngl if you see GNUTLS_DIG_UNKNOWN coming back, that means the lookup failed β so check your spelling before you spiral π
π REPORTING BUGS π
found a bug? don't just scream into the group chat, actually report it:
- report bugs to <bugs@gnutls.org> π§
- home page: https://www.gnutls.org
π 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 like, go forth, share the love, just keep the receipts π«Ά
π 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!! you are now officially fluent in gnutls_digest_get_id π§
this was gnutls 3.8.13, brought to you with love, lowercase energy, and absolutely zero case sensitivity π mwah, go slay β¨
π¦ 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