gnutls_pk_get_id(3)

✨ gnutls_pk_get_id β€” the "who dis?" function ✨

okay bestie, welcome to the gnutls manual page for gnutls_pk_get_id(3). yes it's a mouthful, no you don't have to say it out loud. let's go πŸ’…


🌸 NAME 🌸

gnutls_pk_get_id β€” API function πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

gnutls_pk_algorithm_t gnutls_pk_get_id(const char * name);

πŸ’– ARGUMENTS πŸ’–

  • const char * name β€” a string holding a public key algorithm name. that's it, that's the whole vibe. just the name, queen.

✨ DESCRIPTION ✨

so what does this actually do? it takes a string and converts it into a gnutls_pk_algorithm_t value. glow up for your data types πŸ’«

the way the names are compared is case insensitive, so you don't have to worry about your shift key betraying you. fr fr.

for example:

gnutls_pk_get_id("RSA")

will return GNUTLS_PK_RSA. iconic. ate. no crumbs. πŸ“


πŸ‘‘ RETURNS πŸ‘‘

it hands you back a gnutls_pk_algorithm_t id of the public key algorithm string you asked about, or β€” and this is the sad part 😭 β€” GNUTLS_PK_UNKNOWN if things go wrong. so like, check for that, bestie. always check. πŸ™ˆ


⭐ SINCE ⭐

2.6.0 β€” she's been around a while, lowkey a legend 🧚


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not me manifesting that but okay. report it to <bugs@gnutls.org>. they want to hear from you 🫢

home page: 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. (translation: go off, 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/

okay that's the whole page bestie, you understood it perfectly, main character energy fr fr πŸ”₯ this was gnutls version 3.8.13, manual page gnutls_pk_get_id(3). mwah, slay, periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from