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 agnutls_x509_crq_ttype. like, that's its whole job. it's giving certificate request energy. πgnutls_x509_spki_t spkiβ a SubjectPublicKeyInfo structure of typegnutls_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 π
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
- 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