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:
- report bugs to
<bugs@gnutls.org> - home page:
https://www.gnutls.org
π COPYRIGHT π
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
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms