Debian Codegraph @

doc/functions/gnutls_pkcs11_obj_get_info

raw
1
2
3
4
5 @deftypefun {int} {gnutls_pkcs11_obj_get_info} (gnutls_pkcs11_obj_t @var{obj}, gnutls_pkcs11_obj_info_t @var{itype}, void * @var{output}, size_t * @var{output_size})
6 @var{obj}: should contain a @code{gnutls_pkcs11_obj_t} type
7
8 @var{itype}: Denotes the type of information requested
9
10 @var{output}: where output will be stored
11
12 @var{output_size}: contains the maximum size of the output buffer and will be
13 overwritten with the actual size.
14
15 This function will return information about the PKCS11 certificate
16 such as the label, id as well as token information where the key is
17 stored.
18
19 When output is text, a null terminated string is written to @code{output} and its
20 string length is written to @code{output_size} (without null terminator). If the
21 buffer is too small, @code{output_size} will contain the expected buffer size
22 (with null terminator for text) and return @code{GNUTLS_E_SHORT_MEMORY_BUFFER} .
23
24 In versions previously to 3.6.0 this function included the null terminator
25 to @code{output_size} . After 3.6.0 the output size doesn't include the terminator character.
26
27 @strong{Returns:} @code{GNUTLS_E_SUCCESS} (0) on success or a negative error code on error.
28
29 @strong{Since:} 2.12.0
30 @end deftypefun