gnutls_sign_get_id(3)

πŸ’– gnutls_sign_get_id β€” the glow-up your sign algorithm names deserve πŸ’–

okay bestie, so this one lives in the gnutls manual (yes, that gnutls) and it's literally the ✨ API function ✨ that turns a cute little algorithm name into its official ID. it's giving translator, it's giving matchmaker, it's giving "i know her" 🫢


✨ NAME ✨

gnutls_sign_get_id β€” API function 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

gnutls_sign_algorithm_t gnutls_sign_get_id(const char * name);

like. she's a single function. she takes a name and she hands you back a whole enum. main character energy, no cap πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • const char * name β€” bestie this is a sign algorithm name. that's it, that's the whole job. hand her the name, she does the rest πŸ’…

🌈 DESCRIPTION 🌈

so here's the tea: the names get compared in a case insensitive way. uppercase, lowercase, screaming-into-the-void-caps, she genuinely does not care. "RSA", "rsa", "RsA"? all the same girl to her. slay πŸ™ˆ


⭐ RETURNS ⭐

she returns a gnutls_sign_algorithm_t value corresponding to the algorithm you asked for πŸ’–

and if it goes wrong? you get GNUTLS_SIGN_UNKNOWN on error. so like… if you see that one, she didn't find your girl. don't take it personally 😭


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not the vibe. report it to <bugs@gnutls.org> and the 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. 🫢 (yes that's the whole thing, verbatim, don't come for me, it's the license)


🧚 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, go visit:

https://www.gnutls.org/manual/ πŸ¦‹


fr fr that's the whole page. case insensitive matching, one return value, one error value, and a manual to read. periodt πŸ’…

gnutls 3.8.13 πŸŽ€ and that's the version, babes β€” go forth and identify your sign algorithms, iykyk πŸ’œπŸŒΈβœ¨

πŸ“¦ where this page comes from