gnutls_x509_crt_get_pk_dsa_raw(3)

πŸ’… gnutls_x509_crt_get_pk_dsa_raw β€” bestie edition πŸ’…

okay so real talk, this is a page from the gnutls manual (yes, that gnutls, the TLS library, the one carrying your entire internet on its back 🫢) and today we're doing gnutls_x509_crt_get_pk_dsa_raw. it's an API function. it's giving "quietly important". let's get into it ✨


✨ SYNOPSIS ✨

#include <gnutls/x509.h>

int gnutls_x509_crt_get_pk_dsa_raw(gnutls_x509_crt_t crt, gnutls_datum_t * p, gnutls_datum_t * q, gnutls_datum_t * g, gnutls_datum_t * y);

no cap, that's the whole vibe right there πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crt_t crt β€” the certificate you're holding, literally. this is the one we're gonna dig into πŸ”
  • gnutls_datum_t * p β€” bestie, this one will hold the p. that's it, that's the job 🫑
  • gnutls_datum_t * q β€” and this one will hold the q. she's got one task πŸ’…
  • gnutls_datum_t * g β€” you guessed it, will hold the g πŸŽ€
  • gnutls_datum_t * y β€” and finally, will hold the y. four little datums, four little destinies 🌸

🌈 DESCRIPTION 🌈

so what does this icon actually do? she exports the DSA public key's parameters that are found in the given certificate. periodt. πŸ¦‹

the new parameters get allocated using gnutls_malloc() and then they get stored in the appropriate datum. so like, the memory is hers now, you didn't malloc it, she did, and she's handing it to you πŸ’–


⭐ RETURNS ⭐

  • GNUTLS_E_SUCCESS on success πŸ₯³
  • otherwise, a negative error code 😭 (she's not mad, she's just disappointed)

πŸ”₯ REPORTING BUGS πŸ”₯

found something sus? don't just suffer in silence, report it:


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. so like, go forth and share, just keep the receipts 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/

iykyk, the Texinfo manual is where the deep lore lives πŸ“šβœ¨


and that's the whole page bestie πŸ’… this was gnutls 3.8.13, from the gnutls manual, and honestly? she ate. no crumbs. go read a certificate, export some parameters, stay hydrated, and remember: p, q, g, y β€” in that order, every time. mwah πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from