Blame doc/functions/gnutls_x509_key_purpose_get
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@deftypefun {int} {gnutls_x509_key_purpose_get} (gnutls_x509_key_purposes_t @var{p}, unsigned @var{idx}, gnutls_datum_t * @var{oid})
|
|
Packit |
aea12f |
@var{p}: The key purposes
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{idx}: The index of the key purpose to retrieve
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{oid}: Will hold the object identifier of the key purpose (to be treated as constant)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
This function will retrieve the specified by the index key purpose in the
|
|
Packit |
aea12f |
purposes type. The object identifier will be a null terminated string.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE}
|
|
Packit |
aea12f |
if the index is out of bounds, otherwise a negative error value.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@strong{Since:} 3.3.0
|
|
Packit |
aea12f |
@end deftypefun
|