gnutls_pubkey_import_x509(3)

✨ gnutls_pubkey_import_x509 ✨

okay bestie so we're in the gnutls manual, and today's main character is gnutls_pubkey_import_x509 β€” the API function that does exactly one job and does it slayfully πŸ’…


🌸 NAME 🌸

gnutls_pubkey_import_x509 β€” it's an API function, periodt.


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/abstract.h>

int gnutls_pubkey_import_x509(gnutls_pubkey_t key, gnutls_x509_crt_t
crt, unsigned int flags);

like. look at her. three args. no drama. πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_pubkey_t key β€” this is the public key, the lil guy we're writing into 🫢
  • gnutls_x509_crt_t crt β€” the certificate to be imported</crt>, aka where we're stealing the key from (consensually, it's fine)
  • unsigned int flags β€” bestie. it should be zero. that's the whole vibe. zero. that's it. πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

so the way this works: this function will import the given public key into the abstract gnutls_pubkey_t type. that's it. that's the function. iconic behaviour, no notes ✨


πŸ‘‘ RETURNS πŸ‘‘

on success you get GNUTLS_E_SUCCESS (which is 0, the number we all love) and otherwise you get a negative error value and you go 😭


⭐ SINCE ⭐

2.12.0 β€” she's been here since 2.12.0, a true veteran, highkey legendary 🌈


πŸ’€ REPORTING BUGS πŸ’€

found a bug? don't suffer in silence, tell the girlies:


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. keep the receipt bestie 🧚


πŸ’œ 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, go visit:

https://www.gnutls.org/manual/

and that's the whole page, no cap πŸ’… this was gnutls version 3.8.13, and yeah the manpage itself is dated the same β€” go off, 3.8.13, we love you πŸŽ€βœ¨πŸ«Ά

πŸ“¦ where this page comes from