gnutls_x509_crt_get_issuer_dn(3)
β¨ gnutls_x509_crt_get_issuer_dn β¨
okay bestie, so this one lives in the gnutls manual, and it's literally the glow-up of "who even issued this certificate" π
πΈ NAME πΈ
gnutls_x509_crt_get_issuer_dn β an API function, and yes she's serving exactly what her name says π
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
int gnutls_x509_crt_get_issuer_dn(gnutls_x509_crt_t cert, char * buf,
size_t * buf_size);
look at her, so compact, so iconic π
π ARGUMENTS π
gnutls_x509_crt_t certβ this one should contain agnutls_x509_crt_ttype. that's it, that's the requirement, no cap.char * bufβ a pointer to a structure to hold the name. and get this, it may be null. slay, she's flexible.size_t * buf_sizeβ initially holds the size ofbuf. so you gotta tell her how much room you brought to the party before she fills it up β¨
π§ DESCRIPTION π§
so basically, this function will copy the name of the Certificate issuer in the provided buffer. yes, the whole issuer name, straight into your lil buffer π«Ά
the name will be in the form "C=xxxx,O=yyyy,CN=zzzz" as described in RFC4514. the output string will be ASCII or UTF-8 encoded, depending on the certificate data. so it's giving "depends on the cert's vibe" π
if buf is null then only the size will be filled. perfect for when you just wanna know how much space to bring before you actually show up π
β οΈ okay important bestie, listen up: this function does not output a fully RFC4514 compliant string. if that's what you need, see gnutls_x509_crt_get_issuer_dn3(). different function, different energy, don't mix them up π
π₯ RETURNS π₯
GNUTLS_E_SHORT_MEMORY_BUFFERβ if the provided buffer is not long enough, and in that case thebuf_sizewill be updated with the required size. so she's not mad, she's just telling you the number you should've brought πGNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEβ if the DN does not exist. no DN, no data, no problem (well, kind of a problem, but like, a named one).- another error value on error β yeah, she has layers.
- on success
0is returned. zero, nada, perfection, periodt β¨
π REPORTING BUGS π
found something cursed? report bugs to <bugs@gnutls.org>. they wanna know, fr fr π
home page: https://www.gnutls.org β go say hi, she's lovely π
π 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, share it, remix it, put it on your blog, 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/
like, just go there, it's all there, iykyk π
and that's the whole page bestie!! this lil beauty comes to you from gnutls 3.8.13, and she's been holding it down in the gnutls manual since way back in the 2001-2023 copyright era. mwah π stay cert-ified, angel π¦
π¦ 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