gnutls_pcert_export_x509(3)
β¨ gnutls_pcert_export_x509 β¨
okay bestie, welcome to the gnutls manual β yes, the whole thing lives in a Texinfo manual, but this little page? this one's all about gnutls_pcert_export_x509, an API function. it's giving "glow-up transformation" energy and honestly? obsessed. π
πΈ SYNOPSIS πΈ
#include <gnutls/abstract.h>
int gnutls_pcert_export_x509(gnutls_pcert_st * pcert, gnutls_x509_crt_t
* crt);
π ARGUMENTS π
gnutls_pcert_st * pcertβ the pcert structure, aka the thing you're tryna convert. main character of this operation fr fr.gnutls_x509_crt_t * crtβ an initializedgnutls_x509_crt_t. yes bestie, initialized, that part matters, don't come in here with an uninitialized one. π
π DESCRIPTION π
so what does this actually do? it converts the given gnutls_pcert_t type into a gnutls_x509_crt_t. that's the whole vibe. β¨
β οΈ heads up though β this function only works if the type ofpcertisGNUTLS_CRT_X509. anything else? nope, not happening, it's not built for that. lowkey a strict queen. π
and when it's successful, the value written to crt must be freed with gnutls_x509_crt_deinit() when no longer needed. don't forget this part!! memory leaks are NOT cute, no cap. π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned β slay. otherwise you get a negative error value, which is the universe telling you something went wrong. π
π¦ SINCE π¦
3.4.0 β an icon from way back, she's been here. π
π REPORTING BUGS π
found a bug? don't just sit there, report it bestie:
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. (very generous of them, we love to see it π«Ά)
π§ 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/
that's the whole page bestie, go forth and convert those certs responsibly π
this has been gnutls_pcert_export_x509 from the gnutls manual, version 3.8.13 β mwah, ily, bye πβ¨
π¦ 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