gnutls_x509_crt_set_proxy_dn(3)
β¨ gnutls_x509_crt_set_proxy_dn β¨
okay bestie, so this one lives in the gnutls manual and it's literally called gnutls_x509_crt_set_proxy_dn π it's an API function, and yes it does exactly what the name says: it sets up the proxy DN for you. no cap.
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_set_proxy_dn(gnutls_x509_crt_t crt,
gnutls_x509_crt_t eecrt, unsigned int raw_flag, const void * name,
unsigned int sizeof_name);
π ARGUMENTS π
gnutls_x509_crt_t crtβ agnutls_x509_crt_ttype, and it's holding the new proxy cert π«Ά like, this is the one getting the glow-up.gnutls_x509_crt_t eecrtβ the end entity certificate that will be issuing the proxy. she's the one doing the issuing, main character energy fr.unsigned int raw_flagβ must be0, or1if the CN is DER encoded. that's it, that's the rule πconst void * nameβ a pointer to the CN name. it may beNULLβ¦ but then it MUST be added later, okay?? like, that's not optional, bestie πunsigned int sizeof_nameβ holds the size ofname. the receipts, basically.
π DESCRIPTION π
So this function will set the subject in crt to the end entity's eecrt subject name, and then add a single Common Name component name of size sizeof_name. β¨ This corresponds to the required proxy certificate naming style β like, that's just how proxy certs are supposed to be named, iykyk.
π¨ IMPORTANT SIS: ifnameisNULL, you MUST set it later by usinggnutls_x509_crt_set_dn_by_oid()or similar. do not skip this step. do not pass go. the vibe check will fail π
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value β and ngl, a negative error value is giving "we need to talk" π
π¦ REPORTING BUGS π¦
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.
(so likeβ¦ keep the notice, it's the least you can do π)
β 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_x509_crt_set_proxy_dn(3) from gnutls version 3.8.13, and yes the manual itself is also a whole icon. slay, stay safe, and remember: raw_flag is 0, or 1 if the CN is DER encoded. periodt π
β¨π«Ά
π¦ 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