Blame doc/functions/gnutls_certificate_get_crt_raw
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_certificate_get_crt_raw} (gnutls_certificate_credentials_t @var{sc}, unsigned @var{idx1}, unsigned @var{idx2}, gnutls_datum_t * @var{cert})
|
|
Packit Service |
4684c1 |
@var{sc}: is a @code{gnutls_certificate_credentials_t} type.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{idx1}: the index of the certificate chain if multiple are present
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{idx2}: the index of the certificate in the chain. Zero gives the server's certificate.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{cert}: Will hold the DER encoded certificate.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will return the DER encoded certificate of the
|
|
Packit Service |
4684c1 |
server or any other certificate on its certificate chain (based on @code{idx2} ).
|
|
Packit Service |
4684c1 |
The returned data should be treated as constant and only accessible during the lifetime
|
|
Packit Service |
4684c1 |
of @code{sc} . The @code{idx1} matches the value @code{gnutls_certificate_set_x509_key()} and friends
|
|
Packit Service |
4684c1 |
functions.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
|
|
Packit Service |
4684c1 |
negative error value. In case the indexes are out of bounds @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE}
|
|
Packit Service |
4684c1 |
is returned.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Since:} 3.2.5
|
|
Packit Service |
4684c1 |
@end deftypefun
|