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 a gnutls_psk_server_credentials_t type. 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 πŸ•΅οΈβ™€οΈ


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