gnutls_dh_params_cpy(3)

✨ gnutls_dh_params_cpy(3) β€” the gnutls girlie's guide ✨

okay so bestie, we're in the gnutls manual, section 3, and today's main character is gnutls_dh_params_cpy. it's giving "copy that thing" energy and honestly? obsessed. πŸ’–


🌸 NAME 🌸

gnutls_dh_params_cpy β€” API function πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

int gnutls_dh_params_cpy(gnutls_dh_params_t dst, gnutls_dh_params_t
src);

periodt. that's the whole signature, no notes. πŸ’…


πŸ’œ ARGUMENTS πŸ’œ

  • gnutls_dh_params_t dst β€” this is the destination parameters, and bestie, it should be initialized. do not skip that part, i'm literally begging. πŸ™ˆ
  • gnutls_dh_params_t src β€” this is the source parameters. the original. the blueprint. the moment. ✨

🌈 DESCRIPTION 🌈

so what does this actually do? it copies the DH parameters structure from source to destination. that's it, that's the function. 🫢

the way that the destination needs to be already initialized though β€” no cap, that's the vibe check you have to pass before calling this. the destination should be already initialized. πŸ‘‘


⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (that's 0, queen) is returned. otherwise you get a negative error code back. 😭

so like: 0 = slay, negative = not slay.


πŸ“ REPORTING BUGS πŸ“

found a bug? don't be shy, report it to <bugs@gnutls.org>. πŸ“§

home page is right here: 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 behavior, 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, go visit:

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

iykyk β€” that link is where the full lore lives. πŸ“š


okay that's the whole page bestie, you ate that. πŸ’… this was pulled straight from the gnutls manual, version 3.8.13, so if anything looks off it's that version's fault not mine, fr fr. go copy those DH params, you've got this. πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from