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 π
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
- 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