GNUTLS_CERTIFICATE_SET_PARAMS_FUNCTION(3)

πŸ’– gnutls_certificate_set_params_function β€” from the gnutls manual πŸ’–

okay bestie, buckle up, we're reading a manpage together and honestly? this one is a little vintage. it's giving "old money API" πŸŽ€


✨ NAME ✨

gnutls_certificate_set_params_function β€” it's an API function, periodt πŸ’…


✨ SYNOPSIS ✨

#include <gnutls/gnutls.h>

void
gnutls_certificate_set_params_function(gnutls_certificate_credentials_t
res, gnutls_params_function * func);

✨ ARGUMENTS ✨

  • gnutls_certificate_credentials_t res β€” bestie this is literally just a gnutls_certificate_credentials_t type, that's the whole vibe 🌸
  • gnutls_params_function * func β€” the function that's gonna get called πŸ¦‹

✨ DESCRIPTION ✨

so what this does is it sets a callback, right? like, it hooks up a lil function so the server can go get the Diffie-Hellman or RSA parameters it needs for certificate authentication πŸ”₯

and the callback? it should return GNUTLS_E_SUCCESS (that's 0) on success. no cap, that's the whole deal ✨


✨ DEPRECATED ✨

πŸ’€ okay so this is the part where i have to be real with you: this function is unnecessary and discouraged on GnuTLS 3.6.0 or later. not me delivering bad news 😭

since 3.6.0, DH parameters are negotiated following RFC7919, so you genuinely don't need to be out here doing this manually. the glow-up already happened, babe πŸ‘‘


✨ REPORTING BUGS ✨

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


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. (yes that's the legal bit, and yes it ate, we keep it verbatim ✨)


✨ 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/

go read it, iykyk πŸ“š


and that's the whole page, bestie!! this was gnutls version 3.8.13 doing its thing πŸ’œ stay safe, negotiate your parameters responsibly, and remember: if it's post-3.6.0 you probably don't need this function at all πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from