gnutls_psk_set...params_function(3)
β¨ NAME β¨
gnutls_psk_set_server_params_function β bestie, it's an API function π
This one lives in the gnutls manual, and it's giving "old-school callback setter" energy. Come sit with me, we're gonna go through it together π«Ά
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
void
gnutls_psk_set_server_params_function(gnutls_psk_server_credentials_t
res, gnutls_params_function * func);
Okay so that's the whole vibe right there. Two params, returns nothing, no cap. β¨
π ARGUMENTS π
gnutls_psk_server_credentials_t resβ literally is agnutls_certificate_credentials_ttype. Yes bestie, that's what the docs say, I'm just the messenger πgnutls_params_function * funcβ the function that's gonna get called. The callback. The main character of this whole operation π
π¦ DESCRIPTION π¦
So here's the tea β: this function sets a callback so that the server can go get the Diffie-Hellman parameters for PSK authentication. That's the whole job. That's it. π«‘
And the callback? It should return GNUTLS_E_SUCCESS (that's 0) on success. Zero means slay, anything else means π
Lowkey important: success =GNUTLS_E_SUCCESS=0. Remember it. Your callback needs to come home with a zero.
π DEPRECATED π
Not me having to tell you this... but this function is unnecessary and discouraged on GnuTLS 3.6.0 or later. Yeah. It's giving legacy. π
Since 3.6.0, DH parameters are negotiated following RFC7919, so you genuinely don't need to hand-feed them anymore. Periodt.
π REPORTING BUGS π
Found something cursed? Report bugs to <bugs@gnutls.org>.
Home page is right here: https://www.gnutls.org β go look, it's iconic.
π 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. So like, take it, share it, just keep the receipts bestie π
β 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, then bestie you gotta go visit:
https://www.gnutls.org/manual/
That's the whole page, no crumbs left behind π
That's a wrap! π
This was gnutls 3.8.13, the gnutls manual, gnutls_psk_set...params_function(3) β mwah, go forth and callback responsibly β¨ππ¦
π¦ 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