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 beNULL(may be NULL) πgnutls_datum_t * eβ this one's gonna hold the public exponent. also allowed to beNULL(may be NULL) πunsigned flagsβ flags, but make them fromgnutls_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 π
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
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms