gnutls_x509_dn_import(3)
π gnutls_x509_dn_import(3) π
okay bestie, welcome to the gnutls manual, page for gnutls_x509_dn_import β yes it's an API function, and yes it's iconic. pull up a chair. π
β¨ NAME β¨
gnutls_x509_dn_import β an API function, periodt.
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_dn_import(gnutls_x509_dn_t dn, const gnutls_datum_t *
data);
π¦ ARGUMENTS π¦
gnutls_x509_dn_t dnβ the structure that will hold the imported DN. it's giving β¨empty vessel ready to receiveβ¨, she's the main character here.const gnutls_datum_t * dataβ should contain a DER encoded RDN sequence. that's the payload, bestie, that's what we're importing.
π DESCRIPTION π
so the way this works: this function parses an RDN sequence and stores the result into a gnutls_x509_dn_t type. cute, right? π«Ά
but listen β the data must have been initialized with gnutls_x509_dn_init() first. no skipping that step, that's non-negotiable, that's the vibe check you must pass. π
and once you've got your DN all cozy in there, you may use gnutls_x509_dn_get_rdn_ava() to decode the DN. that's your next move, iykyk. π₯
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. anything else? a negative error value, and we do not claim that. π
π SINCE π
2.4.0 β she's been around, she's a legacy icon, lowkey vintage π
π REPORTING BUGS π
found a bug? spill the tea, not your keyboard rage:
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, no fine print shenanigans. π
π 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/
bestie reminder:datamust be initialized withgnutls_x509_dn_init()before you call this. that's not a suggestion, that's the law. π¨
and that's the whole page, bestie! this was gnutls_x509_dn_import(3), served up from gnutls 3.8.13 β go forth and import your DNs responsibly. slay π
β¨π¦πΈππ
π¦ 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