gnutls_pkcs7_export2(3)
β¨ gnutls_pkcs7_export2 β¨
okay bestie, so this one lives in the gnutls manual (that's the actual manual name, we're just vibing with it π) and it's giving "let me yeet your PKCS7 structure out into the world in a real file format." Obsessed.
πΈ NAME πΈ
gnutls_pkcs7_export2 β it's an API function, bestie. That's literally the whole name. π
π¦ SYNOPSIS π¦
#include <gnutls/pkcs7.h>
int gnutls_pkcs7_export2(gnutls_pkcs7_t pkcs7, gnutls_x509_crt_fmt_t
format, gnutls_datum_t * out);
π ARGUMENTS π
gnutls_pkcs7_t pkcs7β the pkcs7 type. yeah. it's just... the pkcs7 thing. the star of the show π«Άgnutls_x509_crt_fmt_t formatβ the format of your output params, and it has to be one ofPEMorDER. pick one, you can't have both, sorry babe πgnutls_datum_t * outβ will contain a structure,PEMorDERencoded. it gets filled in for you, main character behaviour honestly π
π DESCRIPTION π
so this function will export the pkcs7 structure to DER or PEM format. slay. that's the whole job and it does it flawlessly β¨
the output buffer? allocated using gnutls_malloc(). noted. remember that when you're freeing it, iykyk π
and if the structure is PEM encoded, it will have a header of "BEGIN PKCS7". iconic header text, no cap. π
π RETURNS π
on success, GNUTLS_E_SUCCESS (0) is returned β we love a zero, we love a clean win π₯³ β otherwise you get a negative error value. it's giving "not today." π
β SINCE β
3.1.3 β old money, been around forever, still eating π
π REPORTING BUGS π
found a bug? don't be shy, tell the girlies:
- 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. (translation: go off, just keep the receipts π§Ύβ¨)
πΈ 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!! π it's from the gnutls manual, version 3.8.13, and yeah the page itself is literally named gnutls_pkcs7_export2(3) β we been knew. go export something pretty, 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