GNUTLS_X509_NAME_CONSTRAINTS_ADD_PERMITTED(3)
π gnutls_x509_name_constraints_add_permitted π
okay bestie, sit down, hydrate, because we're doing a gnutls manpage and this one is literally about telling a certificate "hey, these names are ALLOWED, periodt." it lives in the gnutls manual (section 3, the library-functions girlies), so come get your knowledge π
β¨ NAME β¨
gnutls_x509_name_constraints_add_permitted β an API function, aka the glow-up that adds a permitted name constraint to your list π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int
gnutls_x509_name_constraints_add_permitted(gnutls_x509_name_constraints_t
nc, gnutls_x509_subject_alt_name_t type, const gnutls_datum_t * name);
she returns an int, she takes three args, she's lowkey iconic π¦
π ARGUMENTS π
gnutls_x509_name_constraints_t ncβ the nameconstraints. yes that's the whole description bestie, she's the thing you're adding to π«Άgnutls_x509_subject_alt_name_t typeβ the type of the constraints. the vibe check of what kind of name we're permitting πconst gnutls_datum_t * nameβ the data of the constraints. the actual bytes, the moment, the content π
π DESCRIPTION π
so what does she do. this function will add a name constraint to the list of permitted constraints. not the forbidden ones, the permitted ones. there's a difference and we respect it β¨
the constraints type can be any of the following types, no exceptions, she's picky in a cute way:
GNUTLS_SAN_DNSNAMEGNUTLS_SAN_RFC822NAMEGNUTLS_SAN_DNGNUTLS_SAN_URIGNUTLS_SAN_IPADDRESS
and for the latter one β that's GNUTLS_SAN_IPADDRESS, keep up β an IP address in network byte order is expected, followed by its network mask. that's the assignment. network byte order. mask after. don't play with me π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value, and that's your sign to go read the error and heal π
π¦ SINCE π¦
3.3.0 β she's been here, she's vintage, she's a classic π
π REPORTING BUGS π
found a bug? report bugs to <bugs@gnutls.org>. home page: https://www.gnutls.org π«Ά
no cap, if something's broken just tell them, they want to know
π 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. like, legally, you're free to share, just keep the receipts π
π 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/
that's the mothership, go there for the whole lore π
and that's the page bestie, you ate π
this was gnutls version 3.8.13, signing off with love and zero negative error values πΈπβ¨
π¦ 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