5 @deftypefun {int} {gnutls_pkcs11_obj_export} (gnutls_pkcs11_obj_t @var{obj}, void * @var{output_data}, size_t * @var{output_data_size})
6 @var{obj}: Holds the object
8 @var{output_data}: will contain the object data
10 @var{output_data_size}: holds the size of output_data (and will be
11 replaced by the actual size of parameters)
13 This function will export the PKCS11 object data. It is normal for
14 data to be inaccesible and in that case @code{GNUTLS_E_INVALID_REQUEST}
17 If the buffer provided is not long enough to hold the output, then
18 *output_data_size is updated and GNUTLS_E_SHORT_MEMORY_BUFFER will
21 @strong{Returns:} In case of failure a negative error code will be
22 returned, and @code{GNUTLS_E_SUCCESS} (0) on success.
24 @strong{Since:} 2.12.0