gnutls_pkcs11_obj_export3(3)
β¨ gnutls_pkcs11_obj_export3(3) β¨
okay bestie, so this one lives in the gnutls manual (yes, that gnutls π
) and it's literally called gnutls_pkcs11_obj_export3 β an API function, no cap. let's get into it π«Ά
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_obj_export3(gnutls_pkcs11_obj_t obj,
gnutls_x509_crt_fmt_t fmt, gnutls_datum_t * out);
π ARGUMENTS π
gnutls_pkcs11_obj_t objβ the object in question, she's holding it πgnutls_x509_crt_fmt_t fmtβ the format you want the exported data in β¨gnutls_datum_t * outβ this is where the object data is gonna land π¦
π DESCRIPTION π
so this function exports the PKCS11 object data. periodt.
but lowkey β it is normal for data to be inaccessible, and in that case GNUTLS_E_INVALID_REQUEST gets returned. not a you problem, it's just how it is π
the output buffer is allocated using gnutls_malloc() π
(so yeah, that's the allocator, remember it).
π RETURNS π
if it fails? negative error code, unfortunately π
on success? GNUTLS_E_SUCCESS (0) β and that's the vibe check passed, slay β¨
β SINCE β
3.2.7 β she's been iconic since way back π
π REPORTING BUGS π
found a bug? not me gatekeeping β 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. fr fr, that's the whole deal π
π₯ 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/
k bye bestie, go export those objects π β¨
gnutls 3.8.13 β gnutls_pkcs11_obj_export3(3), mwah π«ΆπΈ
π¦ 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