gnutls_oid_to_pk(3)
β¨ gnutls_oid_to_pk(3) β¨
okay bestie, welcome to the gnutls section 3 manual, and today's main character is gnutls_oid_to_pk. it's a lil API function, it's lowkey iconic, and it does exactly one thing. let's get into it π
πΈ NAME πΈ
gnutls_oid_to_pk β it's an API function, no cap.
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
gnutls_pk_algorithm_t gnutls_oid_to_pk(const char * oid);
that's it. that's the whole vibe. one include, one function, one argument. clean. β¨
π ARGUMENTS π
const char * oidβ bestie this is an object identifier, and yes it's a string, hence theconst char *. that's the tea. π
π DESCRIPTION π
so what does it DO? it takes a textual object identifier and converts it into a gnutls_pk_algorithm_t value. that's the whole plot. textual OID goes in, public-key algorithm value comes out. it's giving translator, it's giving glow-up for a string. π
π RETURNS π
on success you get a gnutls_pk_algorithm_t id of the specified digest algorithm. and if things go sideways? you get GNUTLS_PK_UNKNOWN on failure. so like, check for that. don't just assume it ate. π
ngl the return type says pk algorithm but the doc says "id of the specified digest algorithm" β that's literally what it says, so i'm passing it to you word for word. iykyk. π
β SINCE β
3.4.3 β so this has been around for a minute, it's a seasoned queen. π«Ά
π REPORTING BUGS π
found a bug? spill it to <bugs@gnutls.org>. π§
home page is right here: 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, take it, share it, remix it, just keep the receipts. periodt. π )
π§ 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/
and that's the whole page bestie!! π this was gnutls_oid_to_pk(3) from the gnutls 3.8.13 era, and honestly? she ate. go convert some OIDs. mwah. πβ¨π¦
π¦ 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