gnutls_x509_na...ts_add_excluded(3)
π gnutls_x509_name_constraints_add_excluded β the manual page, but make it make sense π
okay so bestie, this is a page from the gnutls manual (section 3, the library-functions girlies π«Ά). Today's main character: gnutls_x509_name_constraints_add_excluded, aka the API function that tells a cert "no babe, not these names, excluded, blocked, not invited to the party π
ββοΈ".
β¨ NAME β¨
gnutls_x509_name_constraints_add_excluded β it's an API function, that's the whole vibe π
πΈ SYNOPSIS πΈ
like, the shape of it, exactly as written:
#include <gnutls/x509.h>
int
gnutls_x509_name_constraints_add_excluded(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 nameconstraints themselves. the lil container we're adding to, she's the one holding the list πgnutls_x509_subject_alt_name_t typeβ the type of the constraints. which flavour of name are we excluding, bestie? πconst gnutls_datum_t * nameβ the data of the constraints. the actual bytes of the thing being excluded β¨
π¦ DESCRIPTION π¦
so this function adds a name constraint to the list of excluded constraints. excluded = "nope, not you, never you" π«π
the constraints type can be any of the following types, and yes, all of them, no skipping:
GNUTLS_SAN_DNSNAMEGNUTLS_SAN_RFC822NAMEGNUTLS_SAN_DNGNUTLS_SAN_URIGNUTLS_SAN_IPADDRESS
and for that last one, GNUTLS_SAN_IPADDRESS, listen closely bestie because this is the part people fumble: an IP address in network byte order is expected, followed by its network mask β which is 4 bytes in IPv4 or 16 bytes in IPv6. so it's the address and the mask, glued together, in that order. do not freestyle this. i'm begging π
β RETURNS β
- on success,
GNUTLS_E_SUCCESS(0) is returned π - otherwise, a negative error value. so like, if it's negative, something went wrong, periodt π
π SINCE π
3.3.0 β she's been here a minute, an icon of longevity π
π«Ά REPORTING BUGS π«Ά
found a bug? don't suffer in silence, tell the devs:
- Report bugs 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.
(that's the legal tea, and we keep it exactly as-is, no cap β)
π 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/
π‘ friendly reminder from me to you: everything above is straight from the real page β i just gave it a glow-up, not a rewrite of the facts. go forth and exclude responsibly π§ββοΈ
and that's a wrap, bestie π this was gnutls version 3.8.13, section 3, page gnutls_x509_na...ts_add_excluded(3) β the truncated-header girlies know the vibe, iykyk π
β¨ slay, bye π¦
π¦ 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