gnutls_privkey_export_dsa_raw(3)

πŸ’– gnutls_privkey_export_dsa_raw(3) πŸ’–

okay bestie, so this one lives in the gnutls manual, and it's literally called gnutls_privkey_export_dsa_raw. Yes, the name is a whole mouthful, we love her anyway. πŸŽ€


✨ NAME ✨

gnutls_privkey_export_dsa_raw β€” it's an API function, no cap 🫢


🌸 SYNOPSIS 🌸

#include <gnutls/abstract.h>

int gnutls_privkey_export_dsa_raw(gnutls_privkey_t key, gnutls_datum_t *
p, gnutls_datum_t * q, gnutls_datum_t * g, gnutls_datum_t * y,
gnutls_datum_t * x);

like. look at all those pointers. she's giving parameter buffet. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_privkey_t key β€” this one holds the public key. yes we know, it's a private key function holding a public key, don't look at us, that's just what the manpage says πŸ™ˆ
  • gnutls_datum_t * p β€” will hold the p. iconic. mysterious. she's just p. πŸ’œ
  • gnutls_datum_t * q β€” will hold the q. the sequel. πŸ“
  • gnutls_datum_t * g β€” will hold the g. the third one. ✨
  • gnutls_datum_t * y β€” will hold the y. almost at the end of the alphabet. 🌈
  • gnutls_datum_t * x β€” will hold the x. the main character, lowkey. πŸ‘‘
not me listing every single letter like a preschool teacher. but fr fr, they're all gnutls_datum_t * and they all get filled in. 🧚

πŸ’– DESCRIPTION πŸ’–

so basically: this function will export the DSA private key's parameters found in the given structure. 🫢

the new parameters get allocated using gnutls_malloc() and will be stored in the appropriate datum. so like, the memory is hers, she allocated it, you don't have to make room yourself. slay. πŸ’…


⭐ RETURNS ⭐

GNUTLS_E_SUCCESS on success β€” periodt, we ate πŸŽ‰

otherwise a negative error code 😭 which, yk, is not the vibe, but at least you'll know.


🌸 SINCE 🌸

3.3.0 β€” she's been here since 3.3.0, an absolute veteran, respect the elders πŸ’œ


πŸŽ€ REPORTING BUGS πŸŽ€

found a bug? not the moment we wanted but okay, report it 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. πŸ’– (basically: keep the receipt, bestie)


πŸ”₯ 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/

and that's the whole page, bestie!! 🌈✨ this was gnutls version 3.8.13, straight from the gnutls manual, and yes she's still serving gnutls_privkey_export_dsa_raw(3) energy at the bottom of every page. mwah. πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from