gnutls_psk_set_params_function(3)
β¨ gnutls_psk_set_params_function(3) β¨
okay bestie, welcome to the gnutls manual, page for gnutls_psk_set_params_function. it's giving niche-but-iconic, fr fr π
πΈ NAME πΈ
gnutls_psk_set_params_function β an API function, no cap π
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
void gnutls_psk_set_params_function(gnutls_psk_server_credentials_t res,
gnutls_params_function * func);
π ARGUMENTS π
gnutls_psk_server_credentials_t resβ literally agnutls_psk_server_credentials_ttype. that's the vibe, that's the whole thing π«Άgnutls_params_function * funcβ the function that's gonna get called. the callback. the main character β¨
π DESCRIPTION π
so what this does is it sets a callback, right? and the whole point is that the server uses that callback to get the Diffie-Hellman or RSA parameters for PSK authentication. that's it, that's the job π
and heads up: the callback should return GNUTLS_E_SUCCESS (which is 0) on success. zero. that's the good number. that's the slay number π
π DEPRECATED π
not me having to tell you this but bestieβ¦ this one is deprecated. π
This function is unnecessary and discouraged on GnuTLS 3.6.0 or later. like, please don't. π
Since 3.6.0, DH parameters are negotiated following RFC7919. so the whole callback thing is justβ¦ not needed anymore. the library handles it. periodt. β
π REPORTING BUGS π
found a bug? don't gatekeep, tell the devs π«Ά
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
π COPYRIGHT π
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. (yes, you can copy it, you just gotta keep the receipt, iykyk π§Ύβ¨)
π 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/
okay that's the whole page, bestie, you ate that π and just so you know, this is all from the gnutls manual, version 3.8.13 β so if you ever need to cite it, that's the flex π β bye pookie, go write some secure PSK code π¦
π¦ 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