GNUTLS_X509_NAME_CONSTRAINTS_CHECK(3)
π gnutls_x509_name_constraints_check π
okay bestie, this one's from the gnutls manual, section 3 (library calls, iykyk). it's giving "certificate validation but make it cute" β¨
π NAME π
gnutls_x509_name_constraints_check β the API function that vibe-checks a name against your constraints. no cap.
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
unsigned
gnutls_x509_name_constraints_check(gnutls_x509_name_constraints_t nc,
gnutls_x509_subject_alt_name_t type, const gnutls_datum_t * name);
π¦ ARGUMENTS π¦
gnutls_x509_name_constraints_t ncβ the name constraints you already extracted, bestie. the receipts, if you will.gnutls_x509_subject_alt_name_t typeβ the type of the constraint you're checking (and yes, it's of typegnutls_x509_subject_alt_name_t, so iconic of it).const gnutls_datum_t * nameβ the actual name that's about to get checked. main character energy fr.
β¨ DESCRIPTION β¨
so basically, this function checks the name you handed it against the constraints sitting inside nc, and it does that using the RFC5280 rules π
. the rules are the rules, periodt.
lowkey important: right now this function is limited to DNS names, emails, and IP addresses β aka the typesGNUTLS_SAN_DNSNAME,GNUTLS_SAN_RFC822NAME, andGNUTLS_SAN_IPADDRESS. anything else? not today, babe. π«Ά
π RETURNS π
- zero if the name you provided is not acceptable π
- non-zero otherwise π
yes, the logic is a little reversed from what your brain wants, but that's the assignment and we're slaying it.
β SINCE β
3.3.0 β an elder. a legend. a classic.
π REPORTING BUGS π
found a bug? not you being the bug reporter, we love that for you π report it 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. (free as in freedom, bestie ποΈ)
π§ 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, go visit:
and that's the whole page, no skips, no missing bits, we ate π
later bestie β this was page gnutls_x509_nam...nstraints_check(3) from gnutls 3.8.13. mwah π
πΈ
π¦ 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