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:
- report bugs to bugs@gnutls.org
- home page: https://www.gnutls.org
they want to hear from you, fr fr. π«Ά
π 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 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
- 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