gnutls_x509_rdn_get2(3)
π gnutls_x509_rdn_get2 β the gnutls girlies' guide π
okay so bestie, we're in the gnutls manual, and today's main character is gnutls_x509_rdn_get2(3). it's giving "let me turn that raw DER into a name you can actually read" and honestly? obsessed. π
β¨ NAME β¨
gnutls_x509_rdn_get2 β API function π¦
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_rdn_get2(const gnutls_datum_t * idn, gnutls_datum_t *
str, unsigned flags);
β¨ ARGUMENTS β¨
const gnutls_datum_t * idnβ this one is supposed to hold a DER encoded RDN sequence, no cap. that's the raw material, the whole vibe before the glow-up. πgnutls_datum_t * strβ a datum that's gonna hold the name. it's the little container where the pretty output lives. π«Άunsigned flagsβ zero, orGNUTLS_X509_DN_FLAG_COMPAT. pick your fighter. β
β¨ DESCRIPTION β¨
so this function literally returns 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 formatting, honestly. πΈ
but wait β when the flag GNUTLS_X509_DN_FLAG_COMPAT is specified, the output format will match the format output by previous to 3.5.6 versions of GnuTLS, which was not not fully RFC4514-compliant. it's the nostalgia mode, the throwback edition. π
β¨ RETURNS β¨
on success, GNUTLS_E_SUCCESS (0) is returned. slay. π
orβ¦ GNUTLS_E_SHORT_MEMORY_BUFFER gets returned and * buf_size is updated if the provided buffer is not long enough. like girl, your buffer is too small, we fixed the number for you, try again. π
otherwise, a negative error value. and that's the villain arc. π©
β¨ REPORTING BUGS β¨
found a bug? spill it to <bugs@gnutls.org>. π§
home page: https://www.gnutls.org β go say hi. π
β¨ 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. free as in do whatever, 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/
and that's the whole page, bestie. mwah. π
this was gnutls version 3.8.13, manual page gnutls_x509_rdn_get2(3) β thanks for reading my little yap session, ily, go read your DER. πβ¨
π¦ 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