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 type gnutls_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) or false (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 the pathLenConstraints field 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 Β© 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