Blame doc/functions/gnutls_x509_crq_get_attribute_data
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@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})
|
|
Packit Service |
4684c1 |
@var{crq}: should contain a @code{gnutls_x509_crq_t} type
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{indx}: Specifies which attribute number to get. Use (0) to get the first one.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{data}: a pointer to a structure to hold the data (may be null)
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{sizeof_data}: initially holds the size of @code{oid}
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will return the requested attribute data in the
|
|
Packit Service |
4684c1 |
certificate request. The attribute data will be stored as a string in the
|
|
Packit Service |
4684c1 |
provided buffer.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
Use @code{gnutls_x509_crq_get_attribute_info()} to extract the OID.
|
|
Packit Service |
4684c1 |
Use @code{gnutls_x509_crq_get_attribute_by_oid()} instead,
|
|
Packit Service |
4684c1 |
if you want to get data indexed by the attribute OID rather than
|
|
Packit Service |
4684c1 |
sequence.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
|
|
Packit Service |
4684c1 |
negative error code in case of an error. If your have reached the
|
|
Packit Service |
4684c1 |
last extension available @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE}
|
|
Packit Service |
4684c1 |
will be returned.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Since:} 2.8.0
|
|
Packit Service |
4684c1 |
@end deftypefun
|