gnutls_x509_trust_list_add_cas(3)
π gnutls_x509_trust_list_add_cas(3) π
okay bestie, so this one lives in the gnutls manual, and it's literally the function that lets you dump a whole squad of certificate authorities into your trust list. no cap. let's get into it π«Ά
β¨ NAME β¨
gnutls_x509_trust_list_add_cas β API function. it adds CAs. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_trust_list_add_cas(gnutls_x509_trust_list_t list, const
gnutls_x509_crt_t * clist, unsigned clist_size, unsigned int flags);
π ARGUMENTS π
gnutls_x509_trust_list_t listβ the list, the moment, the main character. it's the trust list you're adding to β¨const gnutls_x509_crt_t * clistβ a list of CAs. yes it's plural, yes it's a whole group chat of them πunsigned clist_sizeβ the length of the CA list. like, how many besties are we adding here π¦unsigned int flagsβ flags fromgnutls_trust_list_flags_t, iykyk
π DESCRIPTION π
so what this does is: it adds the given certificate authorities to the trusted list. that's it, that's the slay. π₯
β οΈ but listen β the CAs inclistmust not be deinitialized during the lifetime oflist. do not do it. do not even think about it. the way that would break things... π
If the flag GNUTLS_TL_NO_DUPLICATES is specified, then this function will ensure that no duplicates will be present in the final trust list. no copy-paste energy allowed, periodt π
If the flag GNUTLS_TL_NO_DUPLICATE_KEY is specified, then this function will ensure that no certificates with the same key are present in the final trust list. same key? we're not doing that here π
π¨ If eitherGNUTLS_TL_NO_DUPLICATE_KEYorGNUTLS_TL_NO_DUPLICATESare given,gnutls_x509_trust_list_deinit()must be called with parameterallbeing1. don't forget this one fr fr, it's giving mandatory.
β RETURNS β
The number of added elements is returned; that includes duplicate entries. so like, even the dupes get counted, which is honestly iconic of it π
π¦ SINCE π¦
3.0.0 β old money, been here forever, still ate π
π REPORTING BUGS π
found a bug? spill the tea to <bugs@gnutls.org>. they wanna hear it π
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. very generous, very demure, very mindful π
π« 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!! π§ this was gnutls version 3.8.13 of gnutls_x509_trust_list_add_cas(3), mwah, go add some CAs responsibly π
β¨π«Ά
π¦ 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