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 agnutls_certificate_credentials_ttype. 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 π
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
- 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