gnutls_pubkey_get_spki(3)
β¨ gnutls_pubkey_get_spki β the API function glow-up β¨
okay bestie, welcome to the gnutls manual, specifically the page for gnutls_pubkey_get_spki. it's giving "pull the public key info out of your key" energy and honestly? kinda iconic. let's get into it π
πΈ SYNOPSIS πΈ
#include <gnutls/abstract.h>
int gnutls_pubkey_get_spki(gnutls_pubkey_t pubkey, gnutls_x509_spki_t
spki, unsigned int flags);
π ARGUMENTS π
gnutls_pubkey_t pubkeyβ your public key, bestie, of typegnutls_pubkey_t. it's the main character here πgnutls_x509_spki_t spkiβ a SubjectPublicKeyInfo structure, of typegnutls_pubkey_spki_t. this is where the tea gets poured π«unsigned int flagsβ must be zero. that's it. that's the whole vibe. zero, or nothing π₯
π DESCRIPTION π
so the way this works: this function will return the public key information if available. literally that's its whole job and it ate.
π¨ important bestie alert π¨ the provided spki must be initialized. do not skip this step, i am begging you. uninitialized spki = not the vibe π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value, which is the API's way of saying "no π". check your return values, periodt.
π¦ SINCE π¦
3.6.0 β she's been here since 3.6.0 and she's been serving ever since β¨
π REPORTING BUGS π
found a bug? not me manifesting that, but if it happens, report 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. so like, go off, just keep the receipts π§Ύπ
π 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/
and that's the whole page bestie, no cap π«Ά
gnutls 3.8.13 Β· gnutls_pubkey_get_spki(3) β mwah, take care of your spki, and remember to initialize her ππβ¨
π¦ 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