gnutls_x509_crt_get_pk_rsa_raw(3)

✨ NAME ✨

gnutls_x509_crt_get_pk_rsa_raw β€” bestie, it's an API function πŸ’…

(and yeah, this whole thing lives in the gnutls manual, section 3, we're doing library calls today 🫢)


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crt_get_pk_rsa_raw(gnutls_x509_crt_t crt, gnutls_datum_t
* m, gnutls_datum_t * e);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crt_t crt β€” holds the certificate, like she's holding your emotional baggage fr fr
  • gnutls_datum_t * m β€” will hold the modulus ✨
  • gnutls_datum_t * e β€” will hold the public exponent ✨

πŸ’– DESCRIPTION πŸ’–

okay so listen. this function will export the RSA public key's parameters found in the given structure. that's it, that's the job πŸ‘‘

the new parameters will be allocated using gnutls_malloc() and will be stored in the appropriate datum. so like, those m and e pointers get filled in for you β€” the memory is theirs now, not yours, iykyk πŸ™ˆ


⭐ RETURNS ⭐

GNUTLS_E_SUCCESS on success β€” iconic, we love a win πŸŽ‰

otherwise a negative error code. yeah. not the vibe. πŸ’€


πŸ¦‹ REPORTING BUGS πŸ¦‹

found something cursed? report bugs 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: share it, just don't be weird about it, keep the receipts 🧾)


🌈 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/

no cap, go read the Texinfo manual if the HTML one ghosted you πŸ‘»

mwah πŸ’‹ that's the whole page. go get those RSA parameters, you absolute main character.

signing off from gnutls 3.8.13, section 3, gnutls_x509_crt_get_pk_rsa_raw(3) β€” stay encrypted bestie 🫢✨

πŸ“¦ where this page comes from