gnutls_pubkey_export_rsa_raw2(3)

πŸ’– gnutls_pubkey_export_rsa_raw2(3) πŸ’–

okay bestie, so this one lives in the gnutls manual, section 3, and it's all about yanking the raw RSA public key params out of a pubkey object. let's get into it 🫢


✨ NAME ✨

gnutls_pubkey_export_rsa_raw2 β€” literally an API function, no cap


🌈 SYNOPSIS 🌈

#include <gnutls/abstract.h>

int gnutls_pubkey_export_rsa_raw2(gnutls_pubkey_t key, gnutls_datum_t *
m, gnutls_datum_t * e, unsigned flags);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_pubkey_t key β€” the one holding the certificate, she's the main character here πŸ‘‘
  • gnutls_datum_t * m β€” this is gonna hold the modulus. and yes, it's allowed to be NULL (may be NULL) πŸ™ˆ
  • gnutls_datum_t * e β€” this one's gonna hold the public exponent. also allowed to be NULL (may be NULL) πŸ’…
  • unsigned flags β€” flags, but make them from gnutls_abstract_export_flags_t ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this function does is export the RSA public key's parameters that are chillin' inside the given structure. the new parameters get allocated using gnutls_malloc() and then they're stored in the appropriate datum. it's giving "hand me the goods" energy πŸ’–

and the way this function allows for NULL parameters since 3.4.1?? iconic. we love a flexible queen 🌸


⭐ RETURNS ⭐

GNUTLS_E_SUCCESS on success β€” slay πŸŽ‰

otherwise? a negative error code. sad girl hours, but that's the deal πŸ’€


πŸ’œ SINCE πŸ’œ

3.6.0 β€” she's been around, iykyk


πŸ› REPORTING BUGS πŸ›

found a bug? don't be shy, report it to bugs@gnutls.org 🫢

home page, if you need it: 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/


and that's the whole page bestie!! πŸŽ€ this little beauty comes to you from gnutls, version 3.8.13, page gnutls_pubkey_export_rsa_raw2(3) β€” mwah, go export some RSA params, you got this πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from