GNUTLS_X509_CRT_SET_NAME_CONSTRAINTS(3)

πŸ’– gnutls_x509_crt_set_name_constraints(3) πŸ’–

okay bestie, so this one lives in the gnutls manual, and it's literally the glow-up your certificate's name constraints have been waiting for. no cap. πŸŽ€


✨ NAME ✨

gnutls_x509_crt_set_name_constraints β€” it's an API function, babes. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crt_set_name_constraints(gnutls_x509_crt_t crt,
gnutls_x509_name_constraints_t nc, unsigned int critical);

like, look at that signature. iconic. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_x509_crt_t crt β€” the certificate. the main character, fr. 🌟
  • gnutls_x509_name_constraints_t nc β€” the nameconstraints structure. this is the actual tea being served. 🍡
  • unsigned int critical β€” whether this extension will be critical. (spoiler alert from the description, bestie… πŸ‘€)

πŸ’œ DESCRIPTION πŸ’œ

so this function sets the provided name constraints into the certificate extension list. that's it, that's the job. ✨

⚠️ okay and here's the thing β€” this extension is always marked as critical. like, always. no matter what you pass in that critical argument, it's giving critical energy. periodt. πŸ’€

πŸ”₯ RETURNS πŸ”₯

on success? GNUTLS_E_SUCCESS (0) comes home to you. πŸ₯³ anything else is a negative error value, which is the universe's way of saying "not today, bestie". 😭


⭐ SINCE ⭐

3.3.0 β€” she's been around, she's established, she's lowkey a legend. πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't be shy, tell the devs directly:

they want to hear from you, fr fr. 🫢


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 that means you can share it, go off. πŸ“’)


🌈 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/

iykyk. go read the whole thing, it's giving scholar energy. πŸ“šβœ¨


mwah πŸ’‹ that's the whole page, bestie β€” from the gnutls manual, version 3.8.13. now go set some name constraints and slay. πŸ§šπŸ’–

πŸ“¦ where this page comes from