GNUTLS_X509_EXT_EXPORT_INHIBIT_ANYPOLICY(3)
π gnutls_x509_ext_export_inhibit_anypolicy(3) π
okay bestie so this one lives in the gnutls manual, and it's literally the glow-up function for the Inhibit AnyPolicy PKIX extension. she takes a number, she hands you DER. no cap. β¨
πΈ NAME πΈ
gnutls_x509_ext_export_inhibit_anypolicy β it's an API function, periodt.
π¦ SYNOPSIS π¦
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_export_inhibit_anypolicy(unsigned int skipcerts,
gnutls_datum_t * ext);
π ARGUMENTS π
unsigned int skipcertsβ the number of certificates that can go by before anypolicy stops being acceptable. like, after this many, we're done, we're out, bye. πgnutls_datum_t * extβ the DER-encoded extension data. and listen, bestie, you must free this withgnutls_free(). notfree(). not vibes.gnutls_free(). π
β¨ DESCRIPTION β¨
so the way that this works is: you give her a skipcerts value, and she converts it into a DER encoded Inhibit AnyPolicy PKIX extension. that's it. that's the whole job. main character energy honestly. π
the ext data gets allocated using gnutls_malloc(), so it's gnutls's memory, and gnutls's rules apply. remember the free situation from the ARGUMENTS section. i'm not gonna let you forget. π«Ά
β RETURNS β
if everything slays: GNUTLS_E_SUCCESS (that's 0) comes back to you. π
if not: a negative error value. so like, check it. fr fr. π
πΈ SINCE πΈ
3.6.0 β she's been iconic since 3.6.0, iykyk.
π REPORTING BUGS π
found something cursed? 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. so like, keep the receipts. that's the whole deal. π
π§ 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:
https://www.gnutls.org/manual/
no cap:extis yours to free, and the only correct tool for that job isgnutls_free(). don't do her dirty. π
and that's the page, bestie!! π this came to you from gnutls 3.8.13, with copyright love spanning 2001-2023, Free Software Foundation, Inc., and others. mwah. stay DER-encoded. πβ¨π¦
π¦ 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