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