gnutls_privkey_set_spki(3)
β¨ gnutls_privkey_set_spki(3) β¨
okay bestie, welcome to the gnutls manual π this one's all about gnutls_privkey_set_spki, and it's short, it's sweet, and it ate. let's get into it π«Ά
πΈ NAME πΈ
gnutls_privkey_set_spki β it's an API function, babes. that's the whole vibe. β¨
π¦ SYNOPSIS π¦
#include <gnutls/abstract.h>
int gnutls_privkey_set_spki(gnutls_privkey_t privkey, const
gnutls_x509_spki_t spki, unsigned int flags);
likeβ¦ look at her. three args, one int coming back. iconic behavior fr fr π
π ARGUMENTS π
gnutls_privkey_t privkeyβ a public key, and its type isgnutls_privkey_t. yes she's called a privkey and described as a public key, no we are not unpacking that, that's just what the docs say πconst gnutls_x509_spki_t spkiβ a SubjectPublicKeyInfo structure, typed asgnutls_privkey_spki_t. so much spki energy in one argument honestly πunsigned int flagsβ must be zero. like, literally zero. nothing else. don't get creative, bestie π
π DESCRIPTION π
so what does she do? this function sets the public key information. that's it, that's the job π
heads up though β the spki you hand over must be initialized. not "probably initialized", not "i think it's fine" β initialized. the function is not gonna do it for you, she is not your mom π
β RETURNS β
win = GNUTLS_E_SUCCESS (0) π anything else and it's a negative error value, aka the vibe check failed, and you should go read your errors, bestie.
π§ SINCE π§
3.6.0 β she's been here a while, lowkey a legend π
π₯ REPORTING BUGS π₯
found a bug? spill it to <bugs@gnutls.org> π§
home page, if you wanna scroll: 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. (slay, no cap, free as in freedom fr fr π)
π 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, go visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie!! π
this was gnutls version 3.8.13, brought to you by the gnutls manual, and yes β gnutls_privkey_set_spki(3) is her name, don't wear it out β¨ 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