Debian Codegraph @

doc/functions/gnutls_x509_dn_export

raw
1
2
3
4
5 @deftypefun {int} {gnutls_x509_dn_export} (gnutls_x509_dn_t @var{dn}, gnutls_x509_crt_fmt_t @var{format}, void * @var{output_data}, size_t * @var{output_data_size})
6 @var{dn}: Holds the uint8_t DN object
7
8 @var{format}: the format of output params. One of PEM or DER.
9
10 @var{output_data}: will contain a DN PEM or DER encoded
11
12 @var{output_data_size}: holds the size of output_data (and will be
13 replaced by the actual size of parameters)
14
15 This function will export the DN to DER or PEM format.
16
17 If the buffer provided is not long enough to hold the output, then
18 * @code{output_data_size} is updated and @code{GNUTLS_E_SHORT_MEMORY_BUFFER}
19 will be returned.
20
21 If the structure is PEM encoded, it will have a header
22 of "BEGIN NAME".
23
24 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
25 negative error value.
26 @end deftypefun