Debian Codegraph @

doc/functions/gnutls_x509_crq_get_attribute_data

raw
1
2
3
4
5 @deftypefun {int} {gnutls_x509_crq_get_attribute_data} (gnutls_x509_crq_t @var{crq}, unsigned @var{indx}, void * @var{data}, size_t * @var{sizeof_data})
6 @var{crq}: should contain a @code{gnutls_x509_crq_t} type
7
8 @var{indx}: Specifies which attribute number to get. Use (0) to get the first one.
9
10 @var{data}: a pointer to a structure to hold the data (may be null)
11
12 @var{sizeof_data}: initially holds the size of @code{oid}
13
14 This function will return the requested attribute data in the
15 certificate request. The attribute data will be stored as a string in the
16 provided buffer.
17
18 Use @code{gnutls_x509_crq_get_attribute_info()} to extract the OID.
19 Use @code{gnutls_x509_crq_get_attribute_by_oid()} instead,
20 if you want to get data indexed by the attribute OID rather than
21 sequence.
22
23 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
24 negative error code in case of an error. If your have reached the
25 last extension available @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE}
26 will be returned.
27
28 @strong{Since:} 2.8.0
29 @end deftypefun