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 of output_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 Β© 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