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 agnutls_certificate_credentials_ttype, 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:
- 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. (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
- 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