gnutls_x509_crq_get_key_rsa_raw(3)

πŸ’… gnutls_x509_crq_get_key_rsa_raw β€” NAME

okay bestie, so this is a page from the gnutls manual, and this specific function is gnutls_x509_crq_get_key_rsa_raw β€” it's an API function πŸŽ€


✨ SYNOPSIS ✨

like, here's the tea on how you actually call it:

#include <gnutls/x509.h>

int gnutls_x509_crq_get_key_rsa_raw(gnutls_x509_crq_t crq,
gnutls_datum_t * m, gnutls_datum_t * e);

🫢 ARGUMENTS 🫢

  • gnutls_x509_crq_t crq β€” this one holds the certificate. yeah bestie, the whole cert. it's the main character here πŸ‘‘
  • gnutls_datum_t * m β€” this is gonna hold the modulus. it gets filled in for you ✨
  • gnutls_datum_t * e β€” and this one holds the public exponent. so cute, so demure πŸŽ€

🌸 DESCRIPTION 🌸

so what does it even do?? it exports the RSA public key's parameters that it found sitting inside the structure you handed it. like, it goes digging and pulls out the goods πŸ’…

and the way that the new parameters get allocated?? with gnutls_malloc() β€” yes, fr fr β€” and then they get stashed in the appropriate datum. no cap. πŸ¦‹


πŸ’– RETURNS πŸ’–

when it slays, you get GNUTLS_E_SUCCESS (0) back πŸŽ‰ anything else and it's a negative error value, which is giving "not today" 😭


⭐ SINCE ⭐

2.8.0 β€” she's been iconic since way back, iykyk πŸ’œ


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug?? spill 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, go visit:

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

ngl, don't forget to free those datums when you're done with them, bestie β€” that's just good manners 🫢

and that's the whole vibe check! this page is from gnutls 3.8.13 β€” the gnutls_x509_crq_get_key_rsa_raw(3) page, dropping straight out of the gnutls manual. slay, bye πŸ’…πŸ’–

πŸ“¦ where this page comes from