gnutls_x509_crl_get_dn_oid(3)

πŸ’– NAME πŸ’–

gnutls_x509_crl_get_dn_oid β€” bestie, it's an API function πŸŽ€


✨ SYNOPSIS ✨

#include <gnutls/x509.h>

int gnutls_x509_crl_get_dn_oid(gnutls_x509_crl_t crl, unsigned indx,
void * oid, size_t * sizeof_oid);

🌸 ARGUMENTS 🌸

  • gnutls_x509_crl_t crl β€” this one should contain a gnutls_x509_crl_t type. yes, the type is literally named after itself, we don't make the rules πŸ’…
  • unsigned indx β€” tells it which DN OID you want. use (0) to grab the very first one, like the main character you are πŸ‘‘
  • void * oid β€” a pointer to store the OID in. it may be null, no pressure 🫢
  • size_t * sizeof_oid β€” starts out holding the size of oid. it's giving "here's how much room I brought" energy

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function will extract the requested OID of the name of the CRL issuer, specified by the given index. that's it, that's the vibe ✨

and if oid is null then only the size will be filled. no OID, just size. iconic behavior honestly 😌


πŸ’œ RETURNS πŸ’œ

  • GNUTLS_E_SHORT_MEMORY_BUFFER β€” your buffer said "not today" because it wasn't long enough 😭 and when that happens, sizeof_oid gets updated with the required size, so at least you get the tea for next time πŸ“
  • 0 β€” returned on success. slay πŸŽ‰

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? report it to <bugs@gnutls.org>.

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. (fr fr, go ahead and copy it, 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/

and that's the whole page, bestie πŸ’– this little legend lives in the gnutls manual, page 3, version 3.8.13 β€” go forth and get those OIDs, you absolute icon 🧚✨

πŸ“¦ where this page comes from