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 prime
  • const 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 Β© 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