gnutls_x509_crq_get_spki(3)

✨ gnutls_x509_crq_get_spki ✨

okay bestie, so this one lives in the gnutls manual, section 3, and it's literally called gnutls_x509_crq_get_spki. it's an API function. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crq_get_spki(gnutls_x509_crq_t crq, gnutls_x509_spki_t
spki, unsigned int flags);

no cap, that's the exact signature, don't @ me. πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crq_t crq β€” this one should contain a gnutls_x509_crq_t type. like, that's its whole job. it's giving certificate request energy. πŸ‘‘
  • gnutls_x509_spki_t spki β€” a SubjectPublicKeyInfo structure of type gnutls_x509_spki_t. this is where the goods get dropped off. πŸ“
  • unsigned int flags β€” must be zero. that's it. zero. nothing else. don't get creative with it, bestie. 🚫

πŸ’– DESCRIPTION πŸ’–

so the way that this works is: this function will return the public key information of a PKCS10 certificate request. periodt. πŸ’…

⚠️ okay important, the provided spki must be initialized. like, you have to set it up first. don't just roll up with a blank one, it's not gonna go well. 😭

⭐ RETURNS ⭐

  • Zero on success β€” slay, you did it πŸŽ‰
  • or a negative error code on error β€” not slay, something went wrong πŸ’€

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not me being the messenger but fr fr, report bugs to <bugs@gnutls.org>.

home page is right here: https://www.gnutls.org β€” go look, it's iconic. 🌈


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.

(translation: keep the receipts, keep the notice, and you're golden 🫢)


🧚 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/

iykyk. πŸ“šβœ¨


okay that's the whole page, mwah πŸ’œ this was gnutls 3.8.13, and yeah it's from the gnutls_x509_crq_get_spki(3) page β€” go forth and fetch those public key infos, bestie, you got this πŸŒΈπŸ¦‹πŸ’…

πŸ“¦ where this page comes from