GNUTLS_CERTIFICATE_SET_KNOWN_DH_PARAMS(3)
π NAME π
gnutls_certificate_set_known_dh_params β bestie, this is the API function that tells your certificate server which Diffie-Hellman params to flex with β¨
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int
gnutls_certificate_set_known_dh_params(gnutls_certificate_credentials_t
res, gnutls_sec_param_t sec_param);
π ARGUMENTS π
gnutls_certificate_credentials_t resβ okay so this one is agnutls_certificate_credentials_ttype, that's the whole vibe πgnutls_sec_param_t sec_paramβ and this cutie is an option from thegnutls_sec_param_tenumeration π
β¨ DESCRIPTION β¨
So the way that this works is: this function sets the Diffie-Hellman parameters that a certificate server is gonna use. π¦
Those params get used in Ephemeral Diffie-Hellman cipher suites, and they're picked out of the FFDHE set from RFC7919, chosen according to the security level you hand it. Not me explaining RFCs like they're a group chat, but here we are π
π DEPRECATED π
lowkey bestie, 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. The library got main character energy and handles it. π
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise you get a negative error value. That's it, that's the whole story β no cap. β
β SINCE β
3.5.6 π«Ά
π REPORTING BUGS π
Found something cursed? 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. Slay, honestly. β¨
π 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, you ate that. go forth and set those known DH params (or don't, bestie, you're on 3.6.0+ anyway π
). this was the gnutls manual, version 3.8.13, page gnutls_certificate_set_known_dh_params(3) β bye babes, drink water π§π
π¦ 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