gnutls_x509_crq_get_pk_algorithm(3)
β¨ NAME β¨
gnutls_x509_crq_get_pk_algorithm β an API function, bestie, and it's here to tell you what kind of public key is hiding inside a PKCS10 certificate request π
This one lives in the gnutls manual, and honestly? She's a little legend.
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crq_get_pk_algorithm(gnutls_x509_crq_t crq, unsigned int
*bits);
π ARGUMENTS π
gnutls_x509_crq_t crqβ okay so this one should contain agnutls_x509_crq_ttype. Like, that's the whole vibe. It's the cert request you're interrogating πunsigned int * bitsβ ifbitsis non-NULL, it's gonna hold the size of the parameters, in bits. Non-NULL= it gets filled in.NULL= she minds her own business π
π¦ DESCRIPTION π¦
So this function returns the public key algorithm of a PKCS10 certificate request. That's it, that's the job, and she does it flawlessly β¨
If bits is non-NULL, it should have enough size to hold the parameters size in bits β like, please give her room to work, she's not squeezing into jeans two sizes too small π
- For RSA, the bits returned is the modulus.
- For DSA, the bits returned are of the public exponent.
No cap, those are two completely different things. Do not mix them up. Periodt π
π RETURNS π
A member of the gnutls_pk_algorithm_t enumeration on success β slay π β or a negative error code on error π
π₯ REPORTING BUGS π₯
Found a bug? Not me manifesting a crash π Tell the gnutls people directly:
- Report bugs to
<bugs@gnutls.org>. - Home page:
https://www.gnutls.org
They wanna hear from you, fr fr π«Ά
π 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.
π 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/
Okay bestie, that's the whole page. Go read the real docs if you want the full lore, iykyk π
This has been your girl, signing off on gnutls version 3.8.13, page gnutls_x509_crq_get_pk_algorithm(3) πβ¨ππ¦
π¦ 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