gnutls_pubkey_import_x509_raw(3)

✨ NAME ✨

gnutls_pubkey_import_x509_raw β€” an API function, bestie πŸ’– (yes it's from the gnutls manual, we're doing this)


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/abstract.h>

int gnutls_pubkey_import_x509_raw(gnutls_pubkey_t pkey, const
gnutls_datum_t * data, gnutls_x509_crt_fmt_t format, unsigned int
flags);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_pubkey_t pkey β€” the public key, like, the whole point of the operation 🫢
  • const gnutls_datum_t * data β€” the public key data you wanna import
  • gnutls_x509_crt_fmt_t format β€” the format that public key is in
  • unsigned int flags β€” should be zero. that's it. zero. no notes πŸ’…

🌸 DESCRIPTION 🌸

Okay so basically: this function imports the given public key into the abstract gnutls_pubkey_t type. that's the vibe. you hand it key data, it hands you back a nice abstract pubkey. iconic behaviour, no cap ✨


πŸ’œ RETURNS πŸ’œ

If it ate, you get GNUTLS_E_SUCCESS (0) back πŸ’–. otherwise you get a negative error value, which is giving "something went wrong bestie" 😭


⭐ SINCE ⭐

3.1.3 β€” old enough to be a legend, young enough to still slay πŸ‘‘


πŸ› REPORTING BUGS πŸ›

Found a bug? Report bugs 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.

like, literally just keep the notice, it's free, it's fine, we love that for us 🌈

πŸ‘€ 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 β€” the gnutls manual, version 3.8.13, page gnutls_pubkey_import_x509_raw(3). go import some public keys, you absolute main character πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from