gnutls_x509_cr...sic_constraints(3)
π NAME π
gnutls_x509_crt_set_basic_constraints β bestie, it's an API function and it's here to set your basic constraints, no cap
This one lives in the gnutls manual, and honestly? It's giving "small function, big responsibilities." π
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_crt_set_basic_constraints(gnutls_x509_crt_t crt,
unsigned int ca, int pathLenConstraint);
π¦ ARGUMENTS π¦
gnutls_x509_crt_t crtβ a certificate of typegnutls_x509_crt_t. Yes, the whole type name is literally the same as the argument, that's just how it is here, we don't make the rules πunsigned int caβtrue(1) orfalse(0), depending on the Certificate authority status. So like, is this cert the boss or not? That's the vibe check. πint pathLenConstraintβ non-negative error codes indicate the maximum length of path, and negative error codes indicate that thepathLenConstraintsfield should not be present. Lowkey a lil cursed that the negative case is how you say "don't include this field at all", but okay bestie, we roll with it. π
πΈ DESCRIPTION πΈ
This function will set the basicConstraints certificate extension. That's it. That's the whole job. And she does it flawlessly. β¨
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. So like, zero means slay, negative means not slay. π«Ά
π REPORTING BUGS π
Found a bug? Don't suffer in silence, tell the girlies (the maintainers):
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. (Yes bestie, that means you can share it, just keep the receipts. π§Ύπ)
π 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/
Okay so that's the whole page, you ate that reading it fr fr. π This was page gnutls_x509_cr...sic_constraints(3) from the gnutls manual, version 3.8.13, and the footer said gnutls on the left and the same page name on the right. Byeee, go set some basic constraints, 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