GNUTLS_X509_TRUST_LIST_ADD_TRUST_MEM(3)
π gnutls_x509_trust_list_add_trust_mem β bestie edition π
okay so this is one of those gnutls pages, from the gnutls manual set β yes the whole gnutls_x509_tru...t_add_trust_mem(3) situation. anyway. sit down, hydrate, let's get into it π«Ά
β¨ NAME β¨
gnutls_x509_trust_list_add_trust_mem β literally an API function, that's the whole name, no notes π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_trust_list_add_trust_list_add_trust_mem(gnutls_x509_trust_list_t list,
const gnutls_datum_t * cas, const gnutls_datum_t * crls,
gnutls_x509_crt_fmt_t type, unsigned int tl_flags, unsigned int
tl_vflags);
wait no hold on β not that, my bad, it's this one, copy it exactly bestie:
#include <gnutls/x509.h>
int gnutls_x509_trust_list_add_trust_mem(gnutls_x509_trust_list_t list,
const gnutls_datum_t * cas, const gnutls_datum_t * crls,
gnutls_x509_crt_fmt_t type, unsigned int tl_flags, unsigned int
tl_vflags);
π ARGUMENTS π
gnutls_x509_trust_list_t listβ the list. the main character of this whole operation fr.const gnutls_datum_t * casβ a buffer holding a list of CAs. it's optional btw, so you can pass nothing if you're feeling mysterious.const gnutls_datum_t * crlsβ a buffer holding a list of CRLs. also optional. no pressure.gnutls_x509_crt_fmt_t typeβ the format of the certificates. tell it what it's looking at, it's not psychic πunsigned int tl_flagsβ flags, and they come fromgnutls_trust_list_flags_t.unsigned int tl_vflagsβ this isgnutls_certificate_verify_flags, and you only care about it ifflagsspecifiesGNUTLS_TL_VERIFY_CRL. iykyk.
π¦ DESCRIPTION π¦
so this function will add the given certificate authorities to the trusted list. that's it, that's the vibe. you hand it CAs, it trusts them. slay β¨
β οΈ important, do not skip this: if this function is used,gnutls_x509_trust_list_deinit()must be called with parameterallbeing1. not 0. 1. periodt. π
β RETURNS β
the number of added elements is returned. so like, it tells you how many friends it made. iconic.
π SINCE π
3.1 β ancient. vintage. a classic. π
π REPORTING BUGS π
found a bug? not me manifesting that but okay. 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. so yes you can share it, just keep the receipts bestie π«Ά
π₯ 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!! this was gnutls version 3.8.13, brought to you with love from your favorite terminal girlie. go forth and trust those 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