gnutls_x509_crl_get_issuer_dn2(3)
β¨ gnutls_x509_crl_get_issuer_dn2(3) β¨
okay bestie, we're in the gnutls manual, section 3, and today's main character is gnutls_x509_crl_get_issuer_dn2. yes the name is a mouthful. no we are not abbreviating it. it's iconic like that π
πΈ NAME πΈ
gnutls_x509_crl_get_issuer_dn2 β an API function, obviously π
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
int gnutls_x509_crl_get_issuer_dn2(gnutls_x509_crl_t crl, gnutls_datum_t
*dn);
look at her. gorgeous. two args. no notes. π«Ά
π ARGUMENTS π
gnutls_x509_crl_t crlβ bestie this is supposed to hold agnutls_x509_crl_ttype. like, that's the whole vibe of this slot. it's your CRL.gnutls_datum_t * dnβ a pointer to a struct that's gonna hold the name. and listen, listen: you MUST free it usinggnutls_free(). notfree(). not vibes.gnutls_free(). do not forget or it's giving memory leak π
π DESCRIPTION π
so what does she DO. she allocates a buffer and copies over the name of the CRL issuer. that's it. that's the job. slay. β¨
the name comes out looking like "C=xxxx,O=yyyy,CN=zzzz" β exactly as described in RFC4514. the output string will be ASCII or UTF-8 encoded, and which one you get depends on the certificate data. so like, don't assume, okay? π
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() instead. iykyk π§
β RETURNS β
on success you get GNUTLS_E_SUCCESS (which is 0), and otherwise you get a negative error value. that's the whole deal. if it's negative, something went wrong, and you should go look at it. periodt. π
π SINCE π
3.1.10 β an elder. a legend. she's been here. π
π REPORTING BUGS π
found a bug? don't be shy, report it to <bugs@gnutls.org>.
home page: https://www.gnutls.org
π 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. so like, keep the receipts, bestie. π«Ά
π¦ 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, go visit:
https://www.gnutls.org/manual/
okay that's the whole page, you ate it, you understood it, you're a CRL issuer-name-getting legend now π this was gnutls version 3.8.13 talking, mwah, bye bestie πβ¨
π¦ 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