gnutls_x509_crt_get_spki(3)

πŸ’– gnutls_x509_crt_get_spki(3) πŸ’–

okay bestie, welcome to the gnutls manual β€” yes, that gnutls, the GNU TLS one, and this page is literally called gnutls_x509_crt_get_spki. it's giving "I just want to know what's inside this certificate's public key" energy and honestly? relatable. πŸŽ€


✨ NAME ✨

gnutls_x509_crt_get_spki β€” API function πŸ‘‘


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crt_get_spki(gnutls_x509_crt_t cert, gnutls_x509_spki_t
spki, unsigned int flags);

yes the line break in the middle of the parameter list is real, that's just how it's written, don't come for me 😭


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_x509_crt_t cert β€” a certificate of type gnutls_x509_crt_t. that's your girl, the cert we're snooping on πŸ’…
  • gnutls_x509_spki_t spki β€” a SubjectPublicKeyInfo structure of type gnutls_x509_spki_t. this is where the public key info is gonna land, so it has to exist first 🫢
  • unsigned int flags β€” must be zero. that's it. zero. nothing else. no secret flag combos, no main character exceptions βœ‹

πŸ’œ DESCRIPTION πŸ’œ

so like, this function returns the public key information of an X.509 certificate. that's the whole vibe. πŸ”₯

⚠️ heads up bestie: the spki you pass in must be initialized first. not optional. if you hand it an uninitialized one, that's on you, and we don't do that here πŸ™ˆ

⭐ SINCE ⭐

3.6.0 β€” she's been around a minute, lowkey iconic πŸ‘‘


🌈 REPORTING BUGS 🌈

found a bug? not me gatekeeping β€” report it, fr fr:


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. (yes, royalty-free, no cap, just keep the notice πŸ’–)


πŸ” 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 β€” gnutls_x509_crt_get_spki, gnutls version 3.8.13, page gnutls_x509_crt_get_spki(3), signing off. go get that public key info, you absolute icon πŸ«Άβœ¨πŸ’…

πŸ“¦ where this page comes from