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 a gnutls_x509_crq_t type. Like, that's the whole vibe. It's the cert request you're interrogating πŸ”
  • unsigned int * bits β€” if bits is 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:

They wanna hear from you, fr fr 🫢


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