Blame doc/functions/gnutls_pkcs11_obj_export

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