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 Β© 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: data must be initialized with gnutls_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