gnutls_x509_trust_list_init(3)

πŸ’– gnutls_x509_trust_list_init(3) β€” the gnutls manual, but make it make sense πŸ’–

okay bestie, sit down, grab your strawberry matcha πŸ“, because we're about to talk about gnutls_x509_trust_list_init from the gnutls manual. yes it's a whole API function, yes it's lowkey iconic, and yes I'm gonna explain it to you like a normal human being. no cap.


✨ NAME ✨

gnutls_x509_trust_list_init β€” it's an API function, bestie. that's the whole name. that's it. that's the girl. πŸ’…


✨ SYNOPSIS ✨

the way you summon her:

#include <gnutls/x509.h>

int gnutls_x509_trust_list_init(gnutls_x509_trust_list_t * list,
       unsigned int size);

like look at that. two arguments. clean. gorgeous. main character energy fr fr. πŸ‘‘


✨ ARGUMENTS ✨

  • gnutls_x509_trust_list_t * list β€” a pointer to the type you wanna initialize. she needs somewhere to live, so hand her a home 🏠✨
  • unsigned int size β€” the size of the internal hash table. and listen, if you don't feel like deciding? just use (0) for the default size. that's it. that's the whole vibe. no stress, default size, slay. πŸŽ€

✨ DESCRIPTION ✨

so basically? this function initializes an X.509 trust list structure. that's the mission. that's what she does. you give her a list and a size, and boom β€” initialized. it's giving "setting up your little trust list before anything else can happen." πŸŒΈπŸ¦‹


✨ RETURNS ✨

on success you get GNUTLS_E_SUCCESS which is (0) β€” literally the best number. anything else? a negative error value. so if it's negative, something went sideways, and that's your sign πŸ˜­πŸ’€


✨ SINCE ✨

3.0.0 β€” she's been around, she's a legacy icon, we stan a long-running queen πŸ‘‘πŸŒˆ


✨ REPORTING BUGS ✨

found a bug? don't just text the group chat, actually report it:


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. (translation: you can share this file, bestie, just keep the receipts πŸ§ΎπŸ’–)


✨ SEE ALSO ✨

the full documentation for gnutls is maintained as a Texinfo manual. and if the /usr/share/doc/gnutls/ directory does not contain the HTML form β€” rude of it, honestly β€” you can visit:

https://www.gnutls.org/manual/

and that's the whole page, no notes, every single detail intact, periodt πŸ’…

kisses and stay compiled, bestie 🫢 β€” this was gnutls_x509_trust_list_init(3), page from the gnutls manual, version 3.8.13. mwah πŸ’–βœ¨

πŸ“¦ where this page comes from