dane_state_init(3)

✨ dane_state_init(3) ✨

okay so bestie, welcome to the gnutls manual πŸ’– this one's a little function called dane_state_init and honestly? it's giving setup era. let's get into it 🫢


🌸 NAME 🌸

dane_state_init β€” API function


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/dane.h>

int dane_state_init(dane_state_t * s, unsigned int flags);

πŸ’… ARGUMENTS πŸ’…

  • dane_state_t * s β€” the structure that's gonna get initialized. yes, it's your little baby struct, hand it over 🌸
  • unsigned int flags β€” the flags, and they come from the dane_state_flags enumeration. no random numbers pls, iykyk ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does this actually do? it initializes the backend resolver. that's the whole vibe 🧚

and the reason it exists?? it's meant for scenarios where you're doing multiple resolvings β€” because this way you optimize against multiple re-initializations. so like, instead of setting everything up over and over again (cringe), you init once and then just keep resolving. efficiency queen behavior πŸ‘‘


⭐ RETURNS ⭐

on success you get DANE_E_SUCCESS (0) back. slay πŸ’–

otherwise? a negative error value. not the vibe, but at least it's honest 😭


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't be shy, 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. iconic licensing behavior, no notes πŸ’œ


🌈 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, go visit:

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


and that's the whole page bestie!! ✨ this lil guy came to you courtesy of gnutls 3.8.13 β€” go forth, init your state, resolve responsibly, and remember: multiple re-initializations are NOT the move πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from