gnutls_x509_dn_oid_name(3)
β¨ gnutls_x509_dn_oid_name β¨
okay bestie, welcome to the gnutls manual page for gnutls_x509_dn_oid_name(3) π this is the one where you feed it an OID and it tells you what that OID is actually called. it's giving "name tag for your certificate fields", and honestly? obsessed. πΈ
π NAME π
gnutls_x509_dn_oid_name β the API function that turns a mystery DN OID into an actual human name, no cap π
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
const char * gnutls_x509_dn_oid_name(const char * oid, unsigned int
flags);
like yes, that's the whole thing. two args, one vibe check, and a return value that's either a string or literally NULL. periodt. π
π ARGUMENTS π
const char * oidβ this is your Object Identifier, bestie, and it has to be sitting in a null terminated string. so like, it ends when the\0says it ends. no exceptions. πunsigned int flagsβ either0, or one of theGNUTLS_X509_DN_OID_*crew. that's it, that's the whole menu. β¨
π DESCRIPTION π
so here's the tea: this function will return the name of a known DN OID. π«Ά
and if you slide GNUTLS_X509_DN_OID_RETURN_OID into flags, then β when no descriptive name has been found β this function will just hand you back the given OID instead. it's the "if you can't find a cute nickname, we'll just call them by their government name" energy. π iconic behaviour honestly.
β RETURNS β
a null terminated string π β¦ or NULL otherwise. yes, NULL is a real possibility, so maybe check that before you start printing things, bestie. π
π SINCE π
3.0 β she's been here since the beginning of the 3.x era, a true main character. π
π REPORTING BUGS π
found a bug? don't be shy, tell the devs:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
they literally want to hear from you. πβ¨
πΈ 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. π (yes that's a real license line, it's very generous of them, we love that for us.)
π§ 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!! this was gnutls version 3.8.13 bringing you gnutls_x509_dn_oid_name(3) β go name some OIDs, slay, and remember: it's either a string or NULL, so act accordingly. bye pookie π«Άπ
π
π¦ 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