gnutls_pubkey_get_spki(3)

✨ gnutls_pubkey_get_spki β€” the API function glow-up ✨

okay bestie, welcome to the gnutls manual, specifically the page for gnutls_pubkey_get_spki. it's giving "pull the public key info out of your key" energy and honestly? kinda iconic. let's get into it πŸ’–


🌸 SYNOPSIS 🌸

#include <gnutls/abstract.h>

int gnutls_pubkey_get_spki(gnutls_pubkey_t pubkey, gnutls_x509_spki_t
spki, unsigned int flags);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_pubkey_t pubkey β€” your public key, bestie, of type gnutls_pubkey_t. it's the main character here πŸ‘‘
  • gnutls_x509_spki_t spki β€” a SubjectPublicKeyInfo structure, of type gnutls_pubkey_spki_t. this is where the tea gets poured πŸ«–
  • unsigned int flags β€” must be zero. that's it. that's the whole vibe. zero, or nothing πŸ”₯

πŸ’… DESCRIPTION πŸ’…

so the way this works: this function will return the public key information if available. literally that's its whole job and it ate.

🚨 important bestie alert 🚨 the provided spki must be initialized. do not skip this step, i am begging you. uninitialized spki = not the vibe 😭

⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value, which is the API's way of saying "no πŸ’€". check your return values, periodt.


πŸ¦‹ SINCE πŸ¦‹

3.6.0 β€” she's been here since 3.6.0 and she's been serving ever since ✨


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not me manifesting that, but if it happens, report it to <bugs@gnutls.org>.

home page: https://www.gnutls.org 🌈


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, 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, no cap 🫢

gnutls 3.8.13 Β· gnutls_pubkey_get_spki(3) β€” mwah, take care of your spki, and remember to initialize her πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from