gnutls_dh_params_import_raw(3)
π gnutls_dh_params_import_raw(3) π
okay bestie, welcome to the gnutls manual, this one's a page from the gnutls docs and it's literally about swapping out your Diffie-Hellman params. yes it's as niche as it sounds and yes we're gonna slay it anyway π«Ά
β¨ NAME β¨
gnutls_dh_params_import_raw β API function
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_dh_params_import_raw(gnutls_dh_params_t dh_params, const
gnutls_datum_t * prime, const gnutls_datum_t * generator);
π ARGUMENTS π
gnutls_dh_params_t dh_paramsβ the parameters, like, the actual thing you're poking at πconst gnutls_datum_t * primeβ holds the new primeconst gnutls_datum_t * generatorβ holds the new generator
π¦ DESCRIPTION π¦
so this function will replace the pair of prime and generator for use in the Diffie-Hellman key exchange. that's the whole vibe. the new parameters should be stored in the appropriate gnutls_datum, mkay? don't come at it with anything else, it wants the datum. periodt β¨
π RETURNS π
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise a negative error code is returned. so like, if it's not zero, something said no and you should go read that number. ngl. π
π REPORTING BUGS π
found a bug? spill the tea (kindly) 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. iconic behaviour honestly π
π 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/
k that's the whole page bestie, go forth and import those DH params responsibly π§ββοΈβ¨ this was gnutls version 3.8.13, gnutls_dh_params_import_raw(3), mwah π
π¦ 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