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 a gnutls_psk_server_credentials_t type. 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 Β© 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