gnutls_privkey_get_spki(3)
π gnutls_privkey_get_spki(3) β the gnutls manual, but make it make sense π
okay bestie, gather round, we're reading a gnutls man page together and honestly? it's short and it slays. no cap.
β¨ NAME β¨
gnutls_privkey_get_spki β it's an API function, that's the whole vibe π«Ά
πΈ SYNOPSIS πΈ
here's the summoning circle, copy it exactly, don't freestyle:
#include <gnutls/abstract.h>
int gnutls_privkey_get_spki(gnutls_privkey_t privkey, gnutls_x509_spki_t
spki, unsigned int flags);
π ARGUMENTS π
gnutls_privkey_t privkeyβ a public key of typegnutls_privkey_t. yes, it's a privkey holding a public key, we don't make the rules, we just pass it in πgnutls_x509_spki_t spkiβ a SubjectPublicKeyInfo structure of typegnutls_privkey_spki_t. this is where the tea gets stored β¨unsigned int flagsβ must be zero. not one, not two, ZERO. it's giving "no notes" π«
π¦ DESCRIPTION π¦
so what does it do? this function will return the public key information if available. that's it, that's the whole plot π«Ά
β οΈ real talk though: the provided spki must be initialized. don't come in here with an uninitialized struct, that's not the move, bestie. π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned β iconic, flawless, no crumbs π
otherwise you get a negative error value. yeah. negative. it's giving "we need to talk" π
π SINCE π
3.6.0 β she's been around, she's experienced, she's a legend π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the devs:
- report bugs 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, respectfully π
π§ 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/
like, go read it, it's right there, iykyk πβ¨
okay that's the whole page, you ate that fr fr π this was gnutls version 3.8.13, sourced straight from the gnutls manual, and you read it with me, so proud of you. mwah. π
ππ¦
π¦ 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