GNUTLS_ANON_SET_SERVER_PARAMS_FUNCTION(3)

✨ gnutls_anon_set_server_params_function ✨

okay bestie, gather round, because we're diving into the gnutls manual and this one is a lil vintage πŸ’… it's an API function, it lives in the gnutls docs, and honestly? it's giving "my mom's old flip phone." still iconic though. let's get into it 🫢


🌸 NAME 🌸

gnutls_anon_set_server_params_function β€” an API function, no cap ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

void
gnutls_anon_set_server_params_function(gnutls_anon_server_credentials_t
                                       res, gnutls_params_function * func);

πŸ’– ARGUMENTS πŸ’–

  • gnutls_anon_server_credentials_t res β€” okay so this one is literally a gnutls_certificate_credentials_t type. the docs said it, I'm just relaying it fr fr. yes it's confusing, no I did not make the rules πŸ₯²
  • gnutls_params_function * func β€” the function that's gonna get called. that's it, that's the whole vibe. she's the callback, she's the moment 🌟

πŸŽ€ DESCRIPTION πŸŽ€

so the way this works: this function sets a callback, and that callback is how your server goes and fetches the Diffie-Hellman parameters for anonymous authentication. that's the whole job, bestie 🧚

and the callback? it should return GNUTLS_E_SUCCESS (which is 0) when everything goes right. zero means slay, anything else means not slay πŸ’€


πŸ’€ DEPRECATED πŸ’€

not me having to tell you this is deprecated 😭

this function is unnecessary and discouraged on GnuTLS 3.6.0 or later. like, please don't. and the reason is actually kind of gorgeous: since 3.6.0, DH parameters are negotiated following RFC7919 all by themselves. the library handles it. she's independent. she doesn't need you setting up her callbacks anymore πŸ‘‘


🌈 REPORTING BUGS 🌈

found a bug? spill the tea to bugs@gnutls.org πŸ›

home page, if you wanna vibe: https://www.gnutls.org


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

copying and distribution of this file is permitted, with or without modification, in any medium, without royalty β€” provided you keep the copyright notice and this notice intact. so basically: share it, remix it, just don't erase the credits. respect the girlies who made it 🫑


🌟 SEE ALSO 🌟

the full documentation for gnutls is maintained as a Texinfo manual. if the /usr/share/doc/gnutls/ directory does not have the HTML form, you can just go visit:

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

iykyk πŸ“–βœ¨


and that's the whole page, bestie πŸ“ go forth and don't call this function unless you're on ancient GnuTLS, mwah πŸ’‹

gnutls 3.8.13 β€” that's the version, and this lil manual page is brought to you by the gnutls docs themselves πŸ’œ bye pookie πŸ¦‹

πŸ“¦ where this page comes from