gnutls_pubkey_set_spki(3)
π gnutls_pubkey_set_spki β from the gnutls manual π
okay bestie, pull up a chair, we're reading the gnutls manual together and honestly? this one's a little gem π
β¨ NAME β¨
gnutls_pubkey_set_spki β it's an API function, periodt π
πΈ SYNOPSIS πΈ
#include <gnutls/abstract.h>
int gnutls_pubkey_set_spki(gnutls_pubkey_t pubkey, const
gnutls_x509_spki_t spki, unsigned int flags);
like, three arguments, one include, very demure, very mindful π¦
π«Ά ARGUMENTS π«Ά
gnutls_pubkey_t pubkeyβ a public key, and its type is literallygnutls_pubkey_t. no notes πconst gnutls_x509_spki_t spkiβ a SubjectPublicKeyInfo structure, typed asgnutls_pubkey_spki_t. yes, the param saysgnutls_x509_spki_tand the description saysgnutls_pubkey_spki_tβ that's what the page says, don't @ me, I'm just the messenger πunsigned int flagsβ must be zero. zero. z e r o. that's the whole vibe check π
π« DESCRIPTION π«
This function will set the public key information. π
The provided spki must be initialized. not optional, not "ehh probably fine", it must be initialized. iykyk π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so if it's not zero and it's negative, that's your sign something went sideways π
π SINCE π
3.6.0 β vintage, but make it iconic π
π REPORTING BUGS π
Found a bug? spill the tea, bestie:
- 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. (translation: free to copy, 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/
lowkey the whole page in one breath: init yourspki, pass0for flags, getGNUTLS_E_SUCCESS(0) or a negative error back. that's it. that's the function. slay π
and that's a wrap, bestie β this one came straight out of the gnutls manual, version 3.8.13, dated gnutls, and you understood every single word of it fr fr π¦π
π¦ 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