gnutls_psk_set...known_dh_params(3)
π gnutls_psk_set_server_known_dh_params π
okay bestie, so this is a page from the gnutls manual β yeah, the big TLS library one β and we're about to get into some Diffie-Hellman-with-PSK lore that honestly ate. sit down, grab a boba, let's go π§β¨
β¨ NAME β¨
gnutls_psk_set_server_known_dh_params β literally just an API function, no cap
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int
gnutls_psk_set_server_known_dh_params(gnutls_psk_server_credentials_t
res, gnutls_sec_param_t sec_param);
like. that's the whole thing. short king fr π
π ARGUMENTS π
gnutls_psk_server_credentials_t resβ this one is, shockingly, agnutls_psk_server_credentials_ttype. she is who she says she is πgnutls_sec_param_t sec_paramβ and this one is an option from thegnutls_sec_param_tenumeration. pick your vibe from the menu β¨
π¦ DESCRIPTION π¦
so this function sets the Diffie-Hellman parameters that a PSK server is gonna use. obsessed.
those parameters get used in Ephemeral Diffie-Hellman cipher suites, and they're selected from the FFDHE set of RFC7919 β according to whatever security level you handed over in sec_param. so like, you say how much security you want, and it picks the matching FFDHE crew. no cap, that's it π«Ά
π DEPRECATED π
girl. listen to me. this function is unnecessary and discouraged on GnuTLS 3.6.0 or later. since 3.6.0, DH parameters are negotiated following RFC7919 all on their own, like the main character it is. so if you're on 3.6.0+, you do not need this. periodt. π
β RETURNS β
on success you get GNUTLS_E_SUCCESS (which is 0, iconic), otherwise you get a negative error value. so if it's negativeβ¦ yeah. something's up π
π SINCE π
3.5.6 β a true 2015-era baddie π
π REPORTING BUGS π
found a bug? spill the tea 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. (fr fr, just keep the notice π«Ά)
π₯ 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, go visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie!! mwah π
this was gnutls 3.8.13 telling you everything you need to know, and no date because the manpage said so, iykyk β¨ππ¦π
π¦ 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