gnutls_x509_crt_set_ca_status(3)

✨ NAME ✨

gnutls_x509_crt_set_ca_status β€” an API function πŸ’… (and it's literally here to tell the world whether your cert is a CA or not, bestie)


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crt_set_ca_status(gnutls_x509_crt_t crt, unsigned int
ca);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crt_t crt β€” a certificate of type gnutls_x509_crt_t, aka the lil guy you're editing 🫢
  • unsigned int ca β€” true(1) or false(0). Which one you pass depends on the Certificate authority status you want. Slay responsibly. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

Okay so this function will set the basicConstraints certificate extension. That's it, that's the job, no cap. ✨

Heads up tho: if you also want to control the pathLenConstraint field, use gnutls_x509_crt_set_basic_constraints() instead β€” this one won't do it for you, bestie. πŸ’€

🌈 RETURNS 🌈

On success, GNUTLS_E_SUCCESS (0) is returned β€” iconic. Otherwise you get a negative error value, which is giving "something went wrong" energy. 😭


πŸ¦‹ REPORTING BUGS πŸ¦‹

Found a bug? Report it to <bugs@gnutls.org>. πŸ›

Home page: https://www.gnutls.org β€” go say hi. πŸ’œ


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. (fr fr, no strings attached πŸŽ€)


⭐ 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 the <code>gnutls</code> manual, version <code>3.8.13</code>, and the page was <code>gnutls_x509_crt_set_ca_status(3)</code> β€” now go set some basicConstraints and be the main character of your PKI. πŸ§šπŸ’–βœ¨

πŸ“¦ where this page comes from