gnutls_pkcs11_obj_export2(3)
π gnutls_pkcs11_obj_export2(3) π
okay bestie, so this one lives in the gnutls manual (that's the manual name, cute right) and it's literally the "gimme the actual bytes out of my PKCS#11 object" function. let's get into it β¨
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_obj_export2(gnutls_pkcs11_obj_t obj, gnutls_datum_t * out);
π ARGUMENTS π
gnutls_pkcs11_obj_t objβ the object you're holding, bestie. this is the one you're trying to export from π«Άgnutls_datum_t * outβ this pointer is where the object data ends up. it will contain the object data, no cap.
β¨ DESCRIPTION β¨
so this function will export the PKCS11 object data. that's the whole vibe. π
ngl though, it is normal for data to be inaccessible β some objects just don't wanna be read like that π β and in that case GNUTLS_E_INVALID_REQUEST will be returned. not a bug, just how it is.
the output buffer is allocated using gnutls_malloc(), so that's the allocator you're dealing with. remember it. your future self will thank you.
π₯ RETURNS π₯
in case of failure a negative error code will be returned, and GNUTLS_E_SUCCESS (0) on success. so like, check for that zero, bestie. 0 = slay. anything negative = π.
β SINCE β
3.1.3 β she's been around a minute, a true icon π
π REPORTING BUGS π
found something cursed? 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. so yes, go off, distribute it, 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/
okay that's the whole page, you ate that π go export some objects and be the main character of your own PKCS#11 adventure π¦
gnutls version 3.8.13, page gnutls_pkcs11_obj_export2(3) β mwah, that's a wrap πβ¨
π¦ 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