gnutls_certifi..._x509_trust_dir(3)
β¨ NAME β¨
gnutls_certificate_set_x509_trust_dir β it's an API function, bestie π
This one lives in the gnutls manual, section 3. Yes, the same gnutls you already know and love π«Ά
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int
gnutls_certificate_set_x509_trust_dir(gnutls_certificate_credentials_t
cred, const char * ca_dir, gnutls_x509_crt_fmt_t type);
π ARGUMENTS π
gnutls_certificate_credentials_t credβ okay so this is your credentials object, and its type is literallygnutls_certificate_credentials_t. Iconic, self-describing, no notes πconst char * ca_dirβ a directory, and inside it is the list of trusted CAs (a DER list or a PEM list). Yes bestie, a whole directory of trust πgnutls_x509_crt_fmt_t typeβ and this one is either PEM or DER. Pick your format, main character π
π DESCRIPTION π
So the way that this works is: it adds the trusted CAs that are present in the directory, so that client or server certificates can be verified. That's the whole vibe check β trust, established β¨
And like, it's identical to gnutls_certificate_set_x509_trust_file(), except instead of one file it loads all the certificates in a directory. Same energy, bigger slay π₯
β RETURNS β
The number of certificates processed. That's your receipt, bestie π§Ύ
π¦ SINCE π¦
3.3.6 β she's been around, she's got history, she's lowkey a legend π
π REPORTING BUGS π
Found a bug? Not the vibe. Report it 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. Fr fr, that's the whole license vibe π«Ά
π 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/
okay that's the whole page, bestie β no cap, every single detail is in there and nothing got left on read πβ¨
sending you off with the sign-off: this was the gnutls manual, version 3.8.13, for gnutls_certificate_set_x509_trust_dir in section 3. slay, bye ππ
π
π¦ 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