gnutls_x509_rdn_get_by_oid(3)
β¨ gnutls_x509_rdn_get_by_oid β¨
okay bestie, welcome to the gnutls manual, this one's a lil X.509 baddie π
πΈ NAME πΈ
gnutls_x509_rdn_get_by_oid β literally just an API function, that's the whole name, no cap π
π SYNOPSIS π
#include <gnutls/x509.h>
int gnutls_x509_rdn_get_by_oid(const gnutls_datum_t * idn, const char *
oid, unsigned indx, unsigned int raw_flag, void * buf, size_t *
buf_size);
she takes six arguments and she's not sorry about it π«Ά
π¦ ARGUMENTS π¦
const gnutls_datum_t * idnβ this should contain a DER encoded RDN sequence. that's the vibe she's working with, periodt.const char * oidβ an Object Identifier. yes, an OID. iykyk.unsigned indxβ if you've got multiple same OIDs chilling in the RDN, this lil number says which one to send. use0for the first one, that's the default energy. βunsigned int raw_flagβ if this is non-zero then the raw DER data are returned. raw. unprocessed. iconic. π₯void * bufβ a pointer to a structure to hold the peer's name. it's giving storage. it's giving "put the name here please". πsize_t * buf_sizeβ holds the size ofbuf. she's the measuring tape bestie, don't forget her. π
π DESCRIPTION π
so this function will return the name of the given Object identifier, of the RDN sequence. the name gets encoded using the rules from RFC4514. that's it, that's the whole function, she's simple and she slays β¨
π RETURNS π
on success, GNUTLS_E_SUCCESS (0) is returned. slay. π
BUT. if the provided buffer is not long enough, you get GNUTLS_E_SHORT_MEMORY_BUFFER and * buf_size gets updated for you (she's being helpful, not mean π₯Ί).
otherwise you get a negative error value. not the vibe. π
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, report it:
- 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.
(translation: use it, share it, just keep the receipts, we're not asking for money π)
π 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 version 3.8.13, documenting gnutls_x509_rdn_get_by_oid(3), with copyright vibes stretching from 2001 all the way to 2023. go forth and parse those RDNs, you absolute main character πΈβ¨π
π¦ 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