gnutls_x509_tr...emove_trust_mem(3)

✨ NAME ✨

gnutls_x509_trust_list_remove_trust_mem β€” bestie, this is the API function that kicks CAs out of your trust list πŸ’…

It lives in the gnutls manual, and it's giving "spring cleaning but for certificate authorities".


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_trust_list_remove_trust_mem(gnutls_x509_trust_list_t
list, const gnutls_datum_t * cas, gnutls_x509_crt_fmt_t type);

okay so you pull in the header and then you call it, no cap ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_trust_list_t list β€” the list. literally the trust list we're editing, that's her πŸ‘‘
  • const gnutls_datum_t * cas β€” a buffer holding a list of CAs. and yes, it's optional 🫢
  • gnutls_x509_crt_fmt_t type β€” the format of the certificates, gotta tell her what she's looking at 🌸

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function removes the certificate authorities you hand it from the trusted list β€” and when it's needed, it also adds them into a block list. Two-for-one, iconic behaviour honestly πŸ’…

also!! go look at gnutls_x509_trust_list_remove_cas() too, she's the sister function, iykyk 🌈


⭐ RETURNS ⭐

The number of removed elements is returned. so you get a lil count back, cute right? πŸ”₯


πŸ’œ SINCE πŸ’œ

3.1.10 β€” she's been here a minute, a true veteran πŸŽ€


😭 REPORTING BUGS 😭

Found a bug? don't suffer in silence bestie, tell the people:


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.

tl;dr β€” you can copy and share this file however you want, no royalty needed, just keep the copyright notice and this notice with it. slay and also legally required πŸ’–

🌈 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/

like, the whole manual is right there, go drink your water and read it 🧚


okay that's the whole page bestie!! this was gnutls version 3.8.13 β€” mwah, go remove some trust, stay iconic, and remember: block lists are self care πŸ’…βœ¨

πŸ“¦ where this page comes from