gnutls_x509_privkey_set_spki(3)
π gnutls_x509_privkey_set_spki β an API function, bestie π
okay so this one lives in the gnutls manual (that's the manual name, bestie, and we're on version 3.8.13 if you're keeping receipts). It's a lil function called gnutls_x509_privkey_set_spki and honestly? It's giving "quiet overachiever." Let's get into it. β¨
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_privkey_set_spki(gnutls_x509_privkey_t key, const
gnutls_x509_spki_t spki, unsigned int flags);
like, look at that signature. three arguments, one int coming back at you. no cap. π
π ARGUMENTS π
gnutls_x509_privkey_t keyβ bestie this should contain agnutls_x509_privkey_ttype. that's the vibe. that's the assignment. π«Άconst gnutls_x509_spki_t spkiβ aSubjectPublicKeyInfostructure, of typegnutls_x509_spki_t. iconic structure, honestly. πunsigned int flagsβ must be zero. that's it. zero. not one, not "a little bit", ZERO. π«β¨
π¦ DESCRIPTION π¦
So this function will return the public key information of a private key. yes, you read that right, it's giving public info from a private key, the duality of woman. π
And important, bestie: the spki you provide must be initialized. like, don't just roll up with an uninitialized spki, that's not the move. initialize her first. π
β RETURNS β
- Zero on success π
- or a negative error code on error π
that's the whole return story. zero = slay, negative = not slay.
π REPORTING BUGS π
Found a bug? Don't suffer in silence, tell the people:
- 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 basically: copy it, share it, remix it, 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!! π this was gnutls_x509_privkey_set_spki(3) from the gnutls manual, version 3.8.13 β go forth and initialize your spki. 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