gnutls_pkcs11_obj_export(3)
π gnutls_pkcs11_obj_export π
okay bestie, welcome to the gnutls manual page for gnutls_pkcs11_obj_export(3) β yes that's a mouthful, but she's an API function and she's here to hand you your PKCS11 object data. let's get into it π
β¨ NAME β¨
gnutls_pkcs11_obj_export β API function. literally what it says on the tin, she exports.
π¦ SYNOPSIS π¦
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_obj_export(gnutls_pkcs11_obj_t obj, void *
output_data, size_t * output_data_size);
yes the signature wraps like that, don't @ me, that's just how it's printed π
πΈ ARGUMENTS πΈ
gnutls_pkcs11_obj_t objβ holds the object. she's the one carrying the goods π«Άvoid * output_dataβ will contain the object data. this is where the magic lands β¨size_t * output_data_sizeβ holds the size ofoutput_data, and get this: it will be replaced by the actual size of parameters. so she's an in-and-out girlie, she does both π
π DESCRIPTION π
so this function will export the PKCS11 object data. periodt.
but ngl, it is normal for data to be inaccessible, and in that case GNUTLS_E_INVALID_REQUEST will be returned. so if you get that, it's not you, it's the object being private π
and if the buffer you provided is not long enough to hold the output, then *output_data_size is updated and GNUTLS_E_SHORT_MEMORY_BUFFER will be returned. she's basically telling you "bestie your buffer is too small, here's the size you actually need, try again" π
π RETURNS π
in case of failure a negative error code will be returned, and GNUTLS_E_SUCCESS (0) on success. simple as that, zero is the slay number β¨
β SINCE β
2.12.0 β she's been iconic since way back, a true veteran π
π REPORTING BUGS π
found a bug? don't suffer in silence, report it to <bugs@gnutls.org>.
home page: https://www.gnutls.org β go say hi π«Ά
π 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 you can share her, 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, no cap, every single detail preserved π
gnutls version 3.8.13 Β· gnutls_pkcs11_obj_export(3) Β· mwah, go export something iconic π¦β¨π
π¦ 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