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 with gnutls_free(). not free(). 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 Β© 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: ext is yours to free, and the only correct tool for that job is gnutls_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