gnutls_x509_na...ts_get_excluded(3)
β¨ NAME β¨
okay so bestie, welcome to the gnutls manual β this page is all about gnutls_x509_name_constraints_get_excluded, which is an API function π
(yes we're in the big leagues now, no cap)
π SYNOPSIS π
#include <gnutls/x509.h>
int
gnutls_x509_name_constraints_get_excluded(gnutls_x509_name_constraints_t
nc, unsigned idx, unsigned * type, gnutls_datum_t * name);
πΈ ARGUMENTS πΈ
gnutls_x509_name_constraints_t ncβ the extracted name constraints π«Ά like, the whole little bundle of them you already pulled outunsigned idxβ the index of the constraint π which one you want, bestie, counting from wherever the list startsunsigned * typeβ the type of the constraint (of typegnutls_x509_subject_alt_name_t) π¦ so it tells you what kind of thing this constraint is aboutgnutls_datum_t * nameβ the name in the constraint (of the specific type) π the actual name, matching whatever type came back
π DESCRIPTION π
This function will return an intermediate type containing the name constraints of the provided CA certificate. That structure can be used in combination with gnutls_x509_name_constraints_check() to verify whether a server's name is in accordance with the constraints. β¨ like it's giving "here's the rules, now go check them against this server" energy
The name should be treated as constant and valid for the lifetime of nc . β οΈ so do NOT go freeing it or messing with it, okay? it lives and dies with nc, periodt.
π₯ RETURNS π₯
On success, GNUTLS_E_SUCCESS (0) is returned, GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE if the extension is not present, otherwise a negative error value.
so like:0= slay β ,GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE= the extension literally isn't there π, and anything negative = something went wrong, read the error, bestie π
β SINCE β
3.3.0
π REPORTING BUGS π
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
found a bug? don't be shy, tell the gnutls girlies directly π they wanna know 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.
π¦ 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 that's the whole page bestie!! π
this was the gnutls manual, version 3.8.13, and yeah the page title up top was lowkey gnutls_x509_na...ts_get_excluded(3) the whole time (truncated and iconic, iykyk) π go read the rest of the docs, you ate π
π¦ 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