gnutls_x509_tr...dd_system_trust(3)
β¨ NAME β¨
gnutls_x509_trust_list_add_system_trust β bestie, this is the API function that pulls your whole system's trust into the list π
(also hi, this is from the gnutls manual, section 3, and the page header literally just says gnutls_x509_tr...dd_system_trust(3) which is giving "name too long for the terminal" energy π)
π SYNOPSIS π
#include <gnutls/x509.h>
int gnutls_x509_trust_list_add_system_trust(gnutls_x509_trust_list_t
list, unsigned int tl_flags, unsigned int tl_vflags);
like look at that signature. three args. no notes. slay. π
π¦ ARGUMENTS π¦
gnutls_x509_trust_list_t listβ ok so this is the structure of the list πΈ the whole vibe holder, the main character, the place where the trusted CAs go to live.unsigned int tl_flagsβ these areGNUTLS_TL_*flags, periodt β¨unsigned int tl_vflagsβ these aregnutls_certificate_verify_flagsπ«Ά but ONLY if the flags you passed specifyGNUTLS_TL_VERIFY_CRL. otherwise? not it. π
π DESCRIPTION π
okay so here's the tea β this function adds the system's default trusted certificate authorities to the trusted list. like, it goes and grabs the CAs your machine already trusts and drops them right into your list. obsessed. π₯
ngl, on unsupported systems this function returns GNUTLS_E_UNIMPLEMENTED_FEATURE. so if it's giving nothing, that might be why π
and important bestie: this function implies the flag GNUTLS_TL_NO_DUPLICATES π like you didn't even ask for it, it just comes with. no dupes allowed, we don't do repeats here π
π RETURNS π
The number of added elements, or a negative error code on error. that's it, that's the return. if it's a number, yay, that many things got added π if it's negative... it's giving error, not giving success. π
β SINCE β
3.1 β so this has been around for a minute, it's a legacy icon and we respect it π§
π REPORTING BUGS π
found a bug? spill it, fr fr:
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.
like, free to copy, just keep the receipts okay π«Ά
πΈ 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/
go read it, it's lowkey iconic πβ¨
and that's the whole page bestie, mwah π this was the gnutls manual, version 3.8.13, section 3, page gnutls_x509_tr...dd_system_trust(3) β go forth and trust some CAs π¦π
π¦ 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