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 frgnutls_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 π
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
- 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