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 a gnutls_x509_trust_list_t type. 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:


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