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