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 literally gnutls_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 Β© 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