GNUTLS_X509_TRUST_LIST_REMOVE_TRUST_FILE(3)

πŸ’– NAME πŸ’–

gnutls_x509_trust_list_remove_trust_file β€” bestie, it's an API function ✨


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_trust_list_remove_trust_file(gnutls_x509_trust_list_t
list, const char * ca_file, gnutls_x509_crt_fmt_t type);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_trust_list_t list β€” the list, babe. the actual trust list we're messing with πŸ’…
  • const char * ca_file β€” a file containing a list of CAs πŸ“
  • gnutls_x509_crt_fmt_t type β€” the format of the certificates, like what flavor are these certs πŸ“

✨ DESCRIPTION ✨

okay so listen. this function removes the given certificate authorities from the trusted list, and then β€” when it's needed β€” it adds them into a block list. like, you're not just ghosting them, you're actively putting them on the no-fly list 🚫 no cap.

and here's the cute part: PKCS 11 URLs are also accepted, instead of files, by this function. so you can hand it a URL instead of a path, slay 🫢

also go peek at gnutls_x509_trust_list_remove_cas() β€” it's giving sibling energy πŸ‘‘

🌈 RETURNS 🌈

the number of added elements is returned. that's the vibe check result, fr fr πŸ”’


πŸ¦‹ SINCE πŸ¦‹

3.1.10 β€” old money, iconic, been here since forever πŸ’œ


🧚 REPORTING BUGS 🧚

found a bug? not me gatekeeping β€” report it 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. like, go off, spread the word, 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/

and that's the whole page bestie, no crumbs left πŸ“ this was gnutls version 3.8.13 β€” main character energy, always πŸ’…βœ¨ stay trusted, stay un-blocked, mwah 🫢

πŸ“¦ where this page comes from