| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_system_key_iter_get_info} (gnutls_system_key_iter_t * @var{iter}, unsigned @var{cert_type}, char ** @var{cert_url}, char ** @var{key_url}, char ** @var{label}, gnutls_datum_t * @var{der}, unsigned int @var{flags}) |
| 6 |
@var{iter}: an iterator of the system keys (must be set to @code{NULL} initially) |
| 7 |
|
| 8 |
@var{cert_type}: A value of gnutls_certificate_type_t which indicates the type of certificate to look for |
| 9 |
|
| 10 |
@var{cert_url}: The certificate URL of the pair (may be @code{NULL} ) |
| 11 |
|
| 12 |
@var{key_url}: The key URL of the pair (may be @code{NULL} ) |
| 13 |
|
| 14 |
@var{label}: The friendly name (if any) of the pair (may be @code{NULL} ) |
| 15 |
|
| 16 |
@var{der}: if non-NULL the DER data of the certificate |
| 17 |
|
| 18 |
@var{flags}: should be zero |
| 19 |
|
| 20 |
This function will return on each call a certificate |
| 21 |
and key pair URLs, as well as a label associated with them, |
| 22 |
and the DER-encoded certificate. When the iteration is complete it will |
| 23 |
return @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} . |
| 24 |
|
| 25 |
Typically @code{cert_type} should be @code{GNUTLS_CRT_X509} . |
| 26 |
|
| 27 |
All values set are allocated and must be cleared using @code{gnutls_free()} , |
| 28 |
|
| 29 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 30 |
negative error value. |
| 31 |
|
| 32 |
@strong{Since:} 3.4.0 |
| 33 |
@end deftypefun |