gnutls_pubkey_export_dsa_raw2(3)

πŸ’– gnutls_pubkey_export_dsa_raw2 πŸ’–

okay bestie, so this one lives in the gnutls manual (that's the family it belongs to, iykyk) and it's literally an API function. let's get into it πŸŽ€


✨ NAME ✨

gnutls_pubkey_export_dsa_raw2 β€” API function


🌸 SYNOPSIS 🌸

#include <gnutls/abstract.h>

int gnutls_pubkey_export_dsa_raw2(gnutls_pubkey_t key, gnutls_datum_t *
p, gnutls_datum_t * q, gnutls_datum_t * g, gnutls_datum_t * y, unsigned
flags);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_pubkey_t key β€” this one's holding the public key, bestie. she's the main character here πŸ’…
  • gnutls_datum_t * p β€” is gonna hold the p (and yes, it may be NULL, we love a flexible queen)
  • gnutls_datum_t * q β€” is gonna hold the q (may be NULL too, no pressure)
  • gnutls_datum_t * g β€” is gonna hold the g (may be NULL, slay)
  • gnutls_datum_t * y β€” is gonna hold the y (may be NULL, iconic behaviour honestly)
  • unsigned flags β€” flags from gnutls_abstract_export_flags_t

πŸ’œ DESCRIPTION πŸ’œ

so this function will export the DSA public key's parameters found in the given certificate. the new parameters get allocated using gnutls_malloc() and they'll be stored in the appropriate datum. no cap 🫢

also, not me pointing out that this function allows for NULL parameters since 3.4.1 β€” yes, that's literally a thing, she's been flexible for a while now.


⭐ RETURNS ⭐

GNUTLS_E_SUCCESS on success β€” otherwise you're getting a negative error code, and that's just how it is 😭


πŸŽ€ SINCE πŸŽ€

3.6.0 β€” she's been around since 3.6.0, a true legend ✨


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't be shy, report it to bugs@gnutls.org. they want to hear from you fr fr.

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/

ok that's the whole page bestie, every flag, every datum, every copyright line β€” nothing skipped, we keep the receipts πŸ’–

gnutls 3.8.13 β€” and that's the version + date situation, so go forth and export those DSA params, you absolute icon 🧚✨

πŸ“¦ where this page comes from