gnutls_x509_crl_get_issuer_dn(3)

✨ NAME ✨

gnutls_x509_crl_get_issuer_dn β€” okay bestie, this is an API function, and it's literally the one that hands you the name of the CRL issuer. That's it. That's the gig. πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/x509.h>

int gnutls_x509_crl_get_issuer_dn(gnutls_x509_crl_t crl, char * buf,
size_t * sizeof_buf);

🌸 ARGUMENTS 🌸

  • gnutls_x509_crl_t crl β€” bestie this one should contain a gnutls_x509_crl_t type, like, that's its whole job.
  • char * buf β€” a pointer to a structure to hold the peer's name. And yes, it may be null, no stress. πŸ™ˆ
  • size_t * sizeof_buf β€” initially holds the size of buf. So you tell it how much room you've got up front, okay? πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So what this function does: it copies the name of the CRL issuer into the buffer you handed it. That's the move. ✨

The name comes out looking like "C=xxxx,O=yyyy,CN=zzzz", exactly as described in RFC4514. And the output string will be ASCII or UTF-8 encoded, depending on the certificate data β€” so it's giving flexible, we love that for it. 🌈

If buf is NULL then only the size will be filled. Nothing else. Just the size. Iconic minimalism. πŸ‘‘

Heads up bestie: this function does not output a fully RFC4514 compliant string. If that's what you need, go see gnutls_x509_crl_get_issuer_dn3(). Different function, different vibe, no cap. πŸ’€

⭐ RETURNS ⭐

  • GNUTLS_E_SHORT_MEMORY_BUFFER β€” your buffer was not long enough, bestie 😭 and in that case the sizeof_buf will be updated with the required size so you know exactly what to bring next time.
  • 0 β€” success. Slay. πŸŽ‰

🫢 REPORTING BUGS 🫢

Found a bug? Report it to <bugs@gnutls.org>. They're literally waiting to hear from you. πŸ“¬

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, that's the deal. ✨


πŸ”₯ 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 is gnutls 3.8.13, from the gnutls_x509_crl_get_issuer_dn(3) manual. Go get those issuer names. Periodt. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from