gnutls_pcert_import_x509(3)

πŸ’– gnutls_pcert_import_x509(3) πŸ’–

okay bestie, welcome to the gnutls manual page for gnutls_pcert_import_x509 β€” yes that name is a mouthful, no we are not abbreviating it, it's iconic and we respect it. sit down, grab a strawberry πŸ“, let's get into it.


✨ NAME ✨

gnutls_pcert_import_x509 β€” API function


🌸 SYNOPSIS 🌸

#include <gnutls/abstract.h>

int gnutls_pcert_import_x509(gnutls_pcert_st * pcert, gnutls_x509_crt_t
crt, unsigned int flags);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_pcert_st * pcert β€” the pcert structure. that's the one getting the glow-up πŸ’…
  • gnutls_x509_crt_t crt β€” the certificate that's getting imported. the main character, literally πŸ‘‘
  • unsigned int flags β€” zero for now. that's it. that's the whole vibe. zero. 0️⃣

πŸ¦‹ DESCRIPTION πŸ¦‹

so this is a convenience function, which is just fancy speak for "we did the annoying part for you, you're welcome" 🫢. it will import the given certificate into a gnutls_pcert_st structure.

⚠️ bestie listen to me on this one: after you're done, that structure must be deinitialized using gnutls_pcert_deinit();. don't leave it hanging, that's rude to your memory. not me being dramatic, it's literally in the docs 😭

πŸ”₯ RETURNS πŸ”₯

on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value. so like... if it's negative, something went wrong, read the room πŸ’€


⭐ SINCE ⭐

3.0 β€” she's been around, she's a legend, she's aged like fine wine 🍷


πŸ™ˆ REPORTING BUGS πŸ™ˆ

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


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, honestly 🌈


πŸ‘‘ 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, you ate it πŸ’…βœ¨ this was gnutls manual version 3.8.13, brought to you by the gnutls crew β€” mwah, go deinit your pcert πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from