gnutls_x509_dn_set_str(3)
π gnutls_x509_dn_set_str β the manual page, but make it cute π
okay bestie, welcome to the gnutls_x509_dn_set_str(3) page from the gnutls manual π this is the one that lets you yeet a whole DN string into a DN structure, and honestly? she's lowkey iconic for it. let's get into it π¦
β¨ NAME β¨
gnutls_x509_dn_set_str β API function π
no cap, that's the whole name. it's an API function. it does API function things. moving on π«Ά
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_dn_set_str(gnutls_x509_dn_t dn, const char * str, const
char ** err);
yes bestie, that's the exact signature, don't come for me π copy it character for character or the compiler WILL humble you.
π§ ARGUMENTS π§
gnutls_x509_dn_t dnβ a pointer to DN. this is the lil guy you're setting stuff on, the main character of this whole operation πconst char * strβ a comma separated DN string (RFC4514). comma separated!! not semicolon, not vibes, commas π and it's RFC4514 specifically, so iykyk.const char ** errβ indicates the error position (if any). so if the parsing goes sideways, this is where it tells you where it went sideways. very "here's exactly which part of your string ate it" energy π
π DESCRIPTION π
This function will set the DN on the provided DN structure. periodt β¨
The input string should be plain ASCII or UTF-8 encoded β so keep your encoding clean, no random cursed bytes, okay? π
On DN parsing error GNUTLS_E_PARSING_ERROR is returned. so if you see that one, it's not a you problem... well. it might be a you problem. but at least it's a labelled you problem π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned β slay, that's the good zero π
otherwise a negative error value. negative = not slay, go read err and figure out what happened bestie π
π SINCE π
3.5.3 β she's been around since 3.5.3, an absolute veteran, respect her π
π¦ REPORTING BUGS π¦
Report bugs to <bugs@gnutls.org>. β yes, actual email, actual humans, they want to hear it π«Ά
Home page: https://www.gnutls.org β go look, it's giving official π
π 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 to share, just keep the receipts, that's the rule ππ
π 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/
like, go read the whole thing, it's a whole universe of gnutls lore πβ¨
and that's the page bestie!! no notes, no skips, every flag and fact intact π§π
signing off with love: this was page gnutls_x509_dn_set_str(3) from gnutls version 3.8.13 β mwah, stay parsed ππΈ
π¦ 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