gnutls_psk_set_server_dh_params(3)
π gnutls_psk_set_server_dh_params β API function π
okay bestie, welcome to the gnutls manual (yes, that gnutls, the 3.8.13 era one, she's serving crypto realness). this page is literally all about gnutls_psk_set_server_dh_params, and it's a short one, so grab a strawberry π and let's go.
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
void gnutls_psk_set_server_dh_params(gnutls_psk_server_credentials_t
res, gnutls_dh_params_t dh_params);
she's a void function, she takes two things, she returns nothing. lowkey iconic behaviour tbh π
π«Ά ARGUMENTS π«Ά
gnutls_psk_server_credentials_t resβ bestie this one is agnutls_psk_server_credentials_ttype. that's the whole vibe.gnutls_dh_params_t dh_paramsβ and this one is a structure that holds Diffie-Hellman parameters. yes, the DH params, the whole point, no cap πΈ
π DESCRIPTION π
so what does she actually do? this function will set the Diffie-Hellman parameters for an anonymous server to use. that's it, that's the job.
and those parameters? they get used in the Diffie-Hellman exchange with PSK cipher suites. so it's giving "here are my DH params, PSK suites, do ur thing" β¨
π DEPRECATED π
bestie. listen. this function is unnecessary and discouraged on GnuTLS 3.6.0 or later. i'm not being dramatic, that's literally what the page says.
the reason? since 3.6.0, DH parameters are negotiated following RFC7919. so like, the library handles it herself now. main character energy fr fr π
π REPORTING BUGS π
found a bug? not you being the detective π΅οΈβοΈ
- 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.
(so like, share it, remix it, whatever, just keep the receipts π)
π 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/
and that's the whole page, bestie, you ate that π the gnutls 3.8.13 era of this little manpage, dated right there with the rest of them, now living rent-free in your brain. mwah π
π¦ 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