GNUTLS_ANON_SET_SERVER_KNOWN_DH_PARAMS(3)

✨ GNUTLS_ANON_SET_SERVER_KNOWN_DH_PARAMS ✨

okay bestie so this one lives in the gnutls manual, section 3, and it's a whole API function πŸ’– and yes the name is a mouthful, we're gonna get through it together.


πŸ’… NAME πŸ’…

gnutls_anon_set_server_known_dh_params β€” literally just an API function, that's the whole vibe πŸŽ€


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

int
gnutls_anon_set_server_known_dh_params(gnutls_anon_server_credentials_t
res, gnutls_sec_param_t sec_param);

like. look at her. so demure. so mindful πŸ¦‹


🫢 ARGUMENTS 🫢

  • gnutls_anon_server_credentials_t res β€” bestie this is a gnutls_anon_server_credentials_t type. that's it, that's the whole description, no notes πŸ’œ
  • gnutls_sec_param_t sec_param β€” and this one? it's an option from the gnutls_sec_param_t enumeration ✨ (iykyk)

πŸ”₯ DESCRIPTION πŸ”₯

so what does she actually do? this function sets the Diffie-Hellman parameters for an anonymous server to use. πŸ’…

those parameters get used in Anonymous Diffie-Hellman cipher suites, and they'll be selected from the FFDHE set of RFC7919 according to the security level you provide. iconic behavior honestly 🌈


πŸ’€ DEPRECATED πŸ’€

not me having to tell you this but β€” this function is unnecessary and discouraged on GnuTLS 3.6.0 or later. 😭

since 3.6.0, DH parameters are negotiated following RFC7919. so like, she served her time, she's retired now, respect the icon πŸ‘‘


⭐ RETURNS ⭐

  • on success, GNUTLS_E_SUCCESS (0) is returned πŸŽ‰
  • otherwise, you get a negative error value πŸ’€

🧚 SINCE 🧚

3.5.6 β€” she's been around a minute, okay? vintage ✨


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? tell the people, don't suffer in silence:


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 🫢


🌟 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 πŸ’–βœ¨

this was gnutls version 3.8.13, brought to you by the gnutls_anon_set...known_dh_params(3) girlies β€” mwah, go forth and negotiate your DH params responsibly πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from