gnutls_x509_cr...sic_constraints(3)
π gnutls_x509_crq_set_basic_constraints β the glow-up your cert request needed β¨
okay bestie, so this one lives in the gnutls manual, section 3, and it's literally the function that stamps the basicConstraints extension onto a certificate request. it's giving "yes i am allowed to sign other certs, and here's how deep this chain can go" π
πΈ NAME πΈ
gnutls_x509_crq_set_basic_constraints β API function. that's the whole name, no notes, iconic behavior honestly.
π SYNOPSIS π
#include <gnutls/x509.h>
int gnutls_x509_crq_set_basic_constraints(gnutls_x509_crq_t crq,
unsigned int ca, int pathLenConstraint);
π¦ ARGUMENTS π¦
gnutls_x509_crq_t crqβ a certificate request of typegnutls_x509_crq_t. this is your little baby CRQ, the one you're about to decorate πunsigned int caβ true(1) or false(0), depending on the Certificate authority status. so like, is this thing allowed to be a CA or not. binary queen. no in-between.int pathLenConstraintβ non-negative error codes indicate maximum length of path, and negative error codes indicate that thepathLenConstraintsfield should not be present. so: give it a real number and you're capping the chain depth; give it something negative and the field just... doesn't show up. ghosted fr. π
β¨ DESCRIPTION β¨
This function will set the basicConstraints certificate extension.
that's it. that's the whole job. it reaches in, it sets the extension, it slays. no cap.
π₯ RETURNS π₯
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so 0 = we ate π
, anything negative = something went sideways, go read the error, bestie.
β SINCE β
2.8.0 β old money. been holding it down since way back.
π REPORTING BUGS π
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
not me telling you to actually email the bugs in, but like, if you found one, do it π«Ά they wanna know.
π 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. periodt. that's the license, and it's generous, we love that for them.
π 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, if the local docs aren't there, the website has you covered, iykyk π
and that's the whole page, bestie π this is from gnutls version 3.8.13 β go set those basic constraints, you 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