GNUTLS_CERTIFICATE_GET_TRUST_LIST(3)
π gnutls_certificate_get_trust_list β the get me the trust list girly π
okay bestie, welcome to the gnutls manual, you're gonna eat this up fr fr. this one's about gnutls_certificate_get_trust_list, an API function, and it's giving "quiet little helper that does exactly one thing and does it flawlessly." no cap. π
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
void gnutls_certificate_get_trust_list(gnutls_certificate_credentials_t
res, gnutls_x509_trust_list_t * tlist);
like, that's the whole entrance. two args, one void, zero drama. she's lowkey iconic for that. π
πΈ ARGUMENTS πΈ
gnutls_certificate_credentials_t resβ this is yourgnutls_certificate_credentials_ttype, aka the credentials baddie that's holding all the trust energy. she's the main character here.gnutls_x509_trust_list_t * tlistβ the spot where you're gonna store the trust list. that's the location, bestie. she's just a pointer, ready to receive. π«Ά
π« DESCRIPTION π«
so what does she actually do? she obtains the list of trusted certificates that's stored inside res, and then writes a pointer to it over at the location tlist. simple. clean. slay. β¨
but here's the part you gotta remember, and I mean it: that pointer points to memory that is internal to res. so you must not deinitialize it. do not touch. do not free. do not pass go. π it's not yours, it's hers.
and the good news? she handles cleanup herself. that memory gets automatically deallocated when the res structure is deinitialized. so you literally do not have to worry about it β just don't get handsy with it. periodt. π
fr fr: internal memory = look but don't deinit. that's the whole vibe check. π¦
β SINCE β
3.4.0 β she's been here since 3.4.0, an absolute veteran, a legend, the blueprint. π
π REPORTING BUGS π
found a bug? spill the tea to <bugs@gnutls.org>.
home page is right here: https://www.gnutls.org β go visit her, she's lovely. π
π 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. (yes bestie, share the love, just keep the receipts. π§)
π 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, then go visit:
https://www.gnutls.org/manual/
that's your backup plan, she's got you. π
and that's a wrap on this page, gorgeous. this manual came to you courtesy of gnutls 3.8.13 β go forth and never deinitialize that pointer, okay? mwah. π πβ¨
π¦ 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