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 a gnutls_certificate_credentials_t type, that's the whole vibe 🌈
  • gnutls_x509_trust_list_t tlist β€” your trust list. it is a gnutls_x509_trust_list_t type πŸ‘‘
  • 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: the tlist becomes part of the credentials structure and must not be deallocated. like, do NOT free it yourself. it gets automatically deallocated when the res structure 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 Β© 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