GNUTLS_X509_EXT_IMPORT_INHIBIT_ANYPOLICY(3)
π gnutls_x509_ext_import_inhibit_anypolicy β bestie edition π
okay so we're in the gnutls manual, section 3, and today's main character is gnutls_x509_ext_import_inhibit_anypolicy. it's an API function. yes queen, we're reading X.509 extension guts together, grab a boba π§
β¨ NAME β¨
gnutls_x509_ext_import_inhibit_anypolicy β API function π
π¦ SYNOPSIS π¦
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_import_inhibit_anypolicy(const gnutls_datum_t * ext,
unsigned int * skipcerts);
πΈ ARGUMENTS πΈ
const gnutls_datum_t * extβ the DER encoded extension data, aka the raw lil blob we're about to read π¦unsigned int * skipcertsβ this pointer is gonna get filled in with the number of certificates after which anypolicy is no longer acceptable. she's an output, bestie, she holds the answer π
π DESCRIPTION π
so this function returns the certificate's value of SkipCerts, and it does that by reading the DER data of the Inhibit anyPolicy X.509 extension, OID 2.5.29.54. yes, the whole 2.5.29.54, no cap π₯
and what even is skipcerts? it's the number of additional certificates that may appear in the path before the anyPolicy (GNUTLS_X509_OID_POLICY_ANY) is no longer acceptable. so it's likeβ¦ how much longer the vibe stays acceptable before policy says "nope, we're done here" ββ¨
π RETURNS π
zero on success, or a negative error code in case of parsing error π
and listen β if the certificate does not contain the Inhibit anyPolicy extension, you're getting GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE back. that's not a crash, that's just her telling you the thing isn't there π
β SINCE β
3.6.0 β she's been iconic since 3.6.0, periodt π
π«Ά REPORTING BUGS π«Ά
found a bug? don't be shy, 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.
π 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/
and that's the whole page, bestie π¦ this was gnutls 3.8.13 of gnutls_x509_ext...hibit_anypolicy(3) β go forth and parse your extensions responsibly, 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