gnutls_x509_trust_list_set_ptr(3)
β¨ gnutls_x509_trust_list_set_ptr β¨
okay bestie, welcome to the gnutls man pages, but make it cute π«Ά this one's from the gnutls manual, and it's literally the tiniest little function that does one (1) job and does it flawlessly π
πΈ NAME πΈ
gnutls_x509_trust_list_set_ptr β API function, and yes it's exactly what it sounds like π
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
void gnutls_x509_trust_list_set_ptr(gnutls_x509_trust_list_t tlist, void
* ptr);
π ARGUMENTS π
gnutls_x509_trust_list_t tlistβ bestie this is agnutls_x509_trust_list_ttype. that's the whole vibe. it's the trust list you're attaching stuff to πvoid * ptrβ this one's the user pointer, aka your pointer, the little guy you're bringing along for the ride β¨
π DESCRIPTION π
so the way this works: this function sets β like, associates β the user-given pointer ptr to the tlist structure. that's it. that's the whole function. no cap π
and then later you can get that pointer back with gnutls_x509_trust_list_get_ptr(), because a pointer you set is a pointer you should be able to get, periodt π
it's useful in the callback function gnutls_x509_trust_list_set_getissuer_function. so if you're writing that callback and you're like "hmm I need my own little pointer in here" β that's the moment. that's the call. main character energy fr fr π
β SINCE β
3.7.0 β she's been here since 3.7.0 and she's been serving ever since π
π REPORTING BUGS π
found a bug? not you being the bug hunter π tell the devs:
- 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. (iconic behavior honestly, no gatekeeping π«Ά)
π§ 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/
ok that's the whole page bestie, go forth and set your pointers π β¨
and that's a wrap, babe β this page ships with gnutls version 3.8.13, so if you're running that, you're running this. 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