gnutls_x509_cr...hibit_anypolicy(3)

✨ gnutls_x509_cr...hibit_anypolicy(3) ✨

okay bestie, we're in the gnutls manual and today's main character is gnutls_x509_crt_set_inhibit_anypolicy πŸ’… buckle up, it's a short one but she EATS.


πŸŽ€ NAME πŸŽ€

gnutls_x509_crt_set_inhibit_anypolicy β€” an API function, periodt. that's the whole name section, she's lowkey mysterious like that πŸ¦‹


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crt_set_inhibit_anypolicy(gnutls_x509_crt_t crt,
unsigned int skipcerts);

like. the vibes are immaculate. one include, one function, two args. we love a clean signature 😌


🫢 ARGUMENTS 🫢

  • gnutls_x509_crt_t crt β€” a certificate of type gnutls_x509_crt_t. yes bestie, that's the exact same type name twice in one sentence, that's just how the family rolls, iykyk πŸ’–
  • unsigned int skipcerts β€” the number of certificates after which anypolicy is no longer acceptable. so basically: how many more hops down the chain before anypolicy stops being invited to the party πŸŽ‰

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: this function will set the Inhibit anyPolicy certificate extension ✨ that's it. that's the whole description. she's concise, she's confident, she knows what she's about πŸ‘‘

no cap, sometimes the shortest descriptions are the most iconic.


🌈 RETURNS 🌈

on success, GNUTLS_E_SUCCESS (0) is returned πŸ₯³ otherwise you get a negative error value, which is the code equivalent of "not me, not today" 😭

reminder bestie: negative value = something went wrong, so always check that return, fr fr πŸ’€

πŸ› REPORTING BUGS πŸ›

found a bug? don't be shy, report it to <bugs@gnutls.org> β€” the maintainers want to hear about it 🫢

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, share it, remix it, just keep the receipts bestie πŸ’œ


πŸ”₯ 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, you ate that πŸ“ this was page gnutls_x509_cr...hibit_anypolicy(3) from the gnutls manual, version 3.8.13 β€” go forth and inhibit anypolicy responsibly, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from