GNUTLS_CERTIFICATE_SET_TRUST_LIST(3)
β¨ gnutls_certificate_set_trust_list β¨
okay bestie, welcome to the gnutls manual, page three of gnutls_certificate_set_trust_list(3) π
this is the one where you hand your credentials a whole trust list and let it keep it forever. yes, forever. we'll get to that. π«Ά
πΈ NAME πΈ
gnutls_certificate_set_trust_list β it's an API function, no cap π
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
void gnutls_certificate_set_trust_list(gnutls_certificate_credentials_t
res, gnutls_x509_trust_list_t tlist, unsigned flags);
it's giving "one include, one call, zero return value" β¨
π ARGUMENTS π
gnutls_certificate_credentials_t resβ the credentials thingy. it is agnutls_certificate_credentials_ttype, that's the whole vibe πgnutls_x509_trust_list_t tlistβ your trust list. it is agnutls_x509_trust_list_ttype πunsigned flagsβ bestie. it must be zero. that's it. that's the whole rule π
π DESCRIPTION π
so what does this actually do?? it sets a trust list inside the gnutls_certificate_credentials_t type. simple as that, iconic behaviour π
β οΈ okay this part is IMPORTANT, listen up: thetlistbecomes part of the credentials structure and must not be deallocated. like, do NOT free it yourself. it gets automatically deallocated when theresstructure is deinitialized. so the credentials own it now. it's their child. let it go π§
β SINCE β
3.2.2 β she's been around a minute, lowkey a legend πΈ
π REPORTING BUGS π
found a bug? (rude of it tbh π) 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. slay, honestly π
π₯ 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 page bestie!! π this was page gnutls_certificate_set_trust_list(3) from the gnutls manual, version 3.8.13 β mwah, go set some trust lists, and remember: don't you dare deallocate that tlist πβ¨
π¦ 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