gnutls_pubkey_export_dsa_raw(3)

✨ gnutls_pubkey_export_dsa_raw(3) ✨

okay bestie, welcome to the gnutls manual, section 3 β€” and today's main character is gnutls_pubkey_export_dsa_raw, the API function that gets your DSA public key parameters out of a key object and into your hands. it's giving extraction, it's giving DSA, it's giving πŸ’…


πŸŽ€ NAME πŸŽ€

gnutls_pubkey_export_dsa_raw β€” API function


🌸 SYNOPSIS 🌸

#include <gnutls/abstract.h>

int gnutls_pubkey_export_dsa_raw(gnutls_pubkey_t key, gnutls_datum_t *
p, gnutls_datum_t * q, gnutls_datum_t * g, gnutls_datum_t * y);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_pubkey_t key β€” this is the one holding the public key. the source of truth, the moment, the icon πŸ‘‘
  • gnutls_datum_t * p β€” will hold the p (may be NULL)
  • gnutls_datum_t * q β€” will hold the q (may be NULL)
  • gnutls_datum_t * g β€” will hold the g (may be NULL)
  • gnutls_datum_t * y β€” will hold the y (may be NULL)

πŸ’– DESCRIPTION πŸ’–

so like, this function will export the DSA public key's parameters that are found in the given certificate. the new parameters get allocated using gnutls_malloc() and get stored in the appropriate datum. no cap, that's the whole vibe. 🫢

and here's the cute part β€” this function allows for NULL parameters since 3.4.1. so if you don't care about one of them, just pass NULL and move on with your life. self-care, honestly πŸ™ˆ


⭐ RETURNS ⭐

GNUTLS_E_SUCCESS on success β€” slay πŸ’… β€” otherwise a negative error code. not slay. 😭


🌈 SINCE 🌈

3.3.0 β€” she's been around for a minute, an OG fr fr


πŸ“ REPORTING BUGS πŸ“

found a bug? not me manifesting that, 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. periodt.


πŸ”₯ 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_pubkey_export_dsa_raw(3) from gnutls 3.8.13, and yes she ate, no crumbs. go forth and export those parameters πŸ§šβœ¨πŸ’œ

πŸ“¦ where this page comes from