gnutls_x509_privkey_get_spki(3)

πŸ’– NAME πŸ’–

gnutls_x509_privkey_get_spki β€” an API function, bestie, and it lives in the gnutls manual πŸŽ€


✨ SYNOPSIS ✨

#include <gnutls/x509.h>

int gnutls_x509_privkey_get_spki(gnutls_x509_privkey_t key,
       gnutls_x509_spki_t spki, unsigned int flags);

🌸 ARGUMENTS 🌸

  • gnutls_x509_privkey_t key β€” okay so this one should contain a gnutls_x509_privkey_t type. that's literally it, that's the vibe πŸ’…
  • gnutls_x509_spki_t spki β€” a SubjectPublicKeyInfo structure of type gnutls_x509_spki_t. she's the destination, the main character of this whole thing πŸ‘‘
  • unsigned int flags β€” must be zero. that's the whole rule. zero. not one, not a little bit, zero 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this function does is β€” it returns the public key information of a private key. yes fr fr, your private key has public key info tucked inside it and this is how you get it out πŸ“

heads up bestie: the provided spki must be initialized first. no skipping that step, it's not optional, it's giving prerequisite 😭

⭐ RETURNS ⭐

Zero on success, or a negative error code on error. that's the deal πŸ’œ


🌈 REPORTING BUGS 🌈

Found something cursed? Report bugs to <bugs@gnutls.org>.

Home page: https://www.gnutls.org β€” go say hi πŸŽ€


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, that's the license, it's iconic ✨


🧚 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 the whole thing, it's lowkey a masterpiece πŸ“šπŸ’–


okay that's the whole page bestie, you ate that 🫢 this was brought to you by gnutls 3.8.13 β€” stay hydrated, init your spki, and pass flags as zero, mwah πŸ’…πŸŒΈ

πŸ“¦ where this page comes from