GNUTLS_X509_TRUST_LIST_ADD_TRUST_DIR(3)
π gnutls_x509_trust_list_add_trust_dir β the glow-up edition π
okay bestie, so this is a page from the gnutls manual, and it's all about gnutls_x509_trust_list_add_trust_dir, which is literally the API function that yeets a whole directory of trust anchors into your trust list. no cap. let's get into it π«Ά
β¨ NAME β¨
gnutls_x509_trust_list_add_trust_dir β API function π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_trust_list_add_trust_list(gnutls_x509_trust_list_t list,
const char * ca_dir,
const char * crl_dir,
gnutls_x509_crt_fmt_t type,
unsigned int tl_flags,
unsigned int tl_vflags);
wait no. bestie. let me not do that. the real one is:
#include <gnutls/x509.h>
int gnutls_x509_trust_list_add_trust_dir(gnutls_x509_trust_list_t list,
const char * ca_dir,
const char * crl_dir,
gnutls_x509_crt_fmt_t type,
unsigned int tl_flags,
unsigned int tl_vflags);
periodt. π
π¦ ARGUMENTS π¦
gnutls_x509_trust_list_t listβ the list itself, your main character. the trust list you're adding stuff to. πconst char * ca_dirβ a directory holding the CAs. it's optional, so no pressure if you don't have one. πconst char * crl_dirβ a directory holding a list of CRLs. also optional. you're so free. π¦gnutls_x509_crt_fmt_t typeβ the format of the certificates. yes, the format, you have to tell it. πunsigned int tl_flagsβ flags fromgnutls_trust_list_flags_t. flags on flags, iconic. β¨unsigned int tl_vflagsβgnutls_certificate_verify_flags, but only if the flags specifyGNUTLS_TL_VERIFY_CRL. so it's conditional, iykyk. π₯
π DESCRIPTION π
so basically this function adds the given certificate authorities to the trusted list. that's the whole job. she's efficient.
β οΈ but listen β only directories are accepted by this function. like, if you hand her a file, that's not it. directories only, no exceptions, she said what she said. π
π RETURNS π
the number of added elements gets returned. so you get a lil count back, like a little receipt of how much she ate. π§Ύβ¨
β SINCE β
3.3.6 β she's been around since 3.3.6, a certified classic. π
π REPORTING BUGS π
found a bug? don't be shy, tell the devs:
- 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.
(yes bestie, you can copy it, just keep the notice. it's giving generous. π«Ά)
πΈ SEE ALSO πΈ
the full documentation for gnutls is maintained as a Texinfo manual. so if the /usr/share/doc/gnutls/ directory does not contain the HTML form, go visit:
https://www.gnutls.org/manual/
like, that's the link. go there. slay. π¦
and that's the whole page, bestie π this was gnutls 3.8.13 β mwah, drink water, and may all your trust lists be verified. periodt. πβ¨π
π¦ 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