gnutls_anon_set_params_function(3)

πŸ’– NAME πŸ’–

gnutls_anon_set_params_function β€” like, the API function, bestie ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

void gnutls_anon_set_params_function(gnutls_anon_server_credentials_t
res, gnutls_params_function * func);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_anon_server_credentials_t res β€” okay so this one is a gnutls_anon_server_credentials_t type, that's the vibe πŸ’…
  • gnutls_params_function * func β€” and this? this is the function to be called, periodt

🌸 DESCRIPTION 🌸

So what this does, right: it sets a callback so the server can go get its Diffie-Hellman or RSA parameters for anonymous authentication. Lowkey iconic. 🫢

And the callback? It should return GNUTLS_E_SUCCESS (that's 0, bestie) on success. No cap. ✨


πŸ’€ DEPRECATED πŸ’€

Not me having to tell you this... 😭

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, it's giving legacy, fr fr. πŸ™ˆ


πŸ› REPORTING BUGS πŸ›

Found a bug? Tell the girlies at <bugs@gnutls.org>. They wanna know. πŸ’œ

Home page: https://www.gnutls.org


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 β€” that's a generous license and we respect it. πŸŽ€)


🌈 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, then bestie, go visit:

https://www.gnutls.org/manual/

That's the whole page, babe β€” every option, every arg, every word, all intact. Mwah πŸ’…

This was gnutls_anon_set_params_function(3) from the gnutls manual, version 3.8.13. Go forth and negotiate your parameters responsibly, my love. πŸ¦‹βœ¨

πŸ“¦ where this page comes from