Fix CVE-2017-6891 in minitasn1 code
[platform/upstream/gnutls.git] / doc / functions / gnutls_pkcs11_obj_export
1
2
3
4
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
7
8 @var{output_data}: will contain the object data
9
10 @var{output_data_size}: holds the size of output_data (and will be
11 replaced by the actual size of parameters)
12
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} 
15 will be returned.
16
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
19 be returned.
20
21 @strong{Returns:} In case of failure a negative error code will be
22 returned, and @code{GNUTLS_E_SUCCESS}  (0) on success.
23
24 @strong{Since:} 2.12.0
25 @end deftypefun