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:
- 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.
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
- 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