gnutls_x509_rdn_get(3)
π gnutls_x509_rdn_get β bestie, let's read a name π
okay so this is a page from the gnutls manual, and the star of the show is gnutls_x509_rdn_get. it's giving "please just tell me who this certificate belongs to" energy and honestly? same. π
β¨ NAME β¨
gnutls_x509_rdn_get β it's an API function, periodt. π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_rdn_get(const gnutls_datum_t * idn, char * buf, size_t *
buf_size);
π¦ ARGUMENTS π¦
const gnutls_datum_t * idnβ this one should contain a DER encoded RDN sequence. yes bestie, DER, not vibes. πchar * bufβ a pointer to a structure that's gonna hold the peer's name. it's the little home where the name moves in. πsize_t * buf_sizeβ holds the size ofbuf. it's the measuring tape, and it also gets updated. π
π DESCRIPTION π
so this function will return the name of the given RDN sequence. the name comes out looking like "C=xxxx,O=yyyy,CN=zzzz", exactly as described in RFC4514. iconic format, no notes. β¨
heads up bestie: this function does not output a fully RFC4514 compliant string. if that's what you need, go see gnutls_x509_rdn_get2() instead. different function, different slay. π
π RETURNS π
on success, GNUTLS_E_SUCCESS (0) is returned. simple. clean. we love her. π«Ά
but if the buffer you handed over isn't long enough? you get GNUTLS_E_SHORT_MEMORY_BUFFER back, and * buf_size gets updated for you β so it's literally telling you "give me more room, bestie." π
otherwise you get a negative error value. not the main character moment we wanted, ngl. π
π REPORTING BUGS π
found something cursed? report bugs 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. fr fr, that's the whole 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 was gnutls_x509_rdn_get(3) from gnutls version 3.8.13. go read a certificate name, you've totally got this. mwah. π
β¨π¦
π¦ 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