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 \0 says it ends. no exceptions. πŸ™ˆ
  • unsigned int flags β€” either 0, or one of the GNUTLS_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:

they literally want to hear from you. πŸ›βœ¨


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