gnutls_x509_crt_get_issuer(3)

πŸ’– gnutls_x509_crt_get_issuer πŸ’–

okay bestie, this is a page from the gnutls manual, and it's about getting the issuer out of a certificate. yes, like, the who signed this of it all. let's go πŸ¦‹


✨ NAME ✨

gnutls_x509_crt_get_issuer β€” literally an API function, that's the whole name, slay


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crt_get_issuer(gnutls_x509_crt_t cert, gnutls_x509_dn_t
*dn);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crt_t cert β€” bestie this one should contain a gnutls_x509_crt_t type. that's it, that's the vibe.
  • gnutls_x509_dn_t * dn β€” this is your output variable, and it holds a pointer to a uint8_t DN. it's giving "results go here" πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

So what it does: it returns the Certificate's Issuer DN as a gnutls_x509_dn_t data type, which you can then decode using gnutls_x509_dn_get_rdn_ava(). adorable, right? 🫢

⚠️ okay IMPORTANT though: dn should be treated as constant. because it points into the cert object, you should not use dn after cert is deallocated. like, don't. that's undefined-ish chaos and we don't do that here πŸ’€

🌈 RETURNS 🌈

Returns 0 on success, or an error code. that's the whole story, no notes ✨


πŸ› 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.


🧚 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 page!! this was gnutls version 3.8.13, and the manpage is gnutls_x509_crt_get_issuer(3) β€” go forth and read those issuers, main character πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from