Blame doc/functions/gnutls_x509_crt_get_policy
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_x509_crt_get_policy} (gnutls_x509_crt_t @var{crt}, unsigned @var{indx}, struct gnutls_x509_policy_st * @var{policy}, unsigned int * @var{critical})
|
|
Packit Service |
4684c1 |
@var{crt}: should contain a @code{gnutls_x509_crt_t} type
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{indx}: This specifies which policy to return. Use (0) to get the first one.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{policy}: A pointer to a policy structure.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{critical}: will be non-zero if the extension is marked as critical
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will extract the certificate policy (extension 2.5.29.32)
|
|
Packit Service |
4684c1 |
specified by the given index.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The policy returned by this function must be deinitialized by using
|
|
Packit Service |
4684c1 |
@code{gnutls_x509_policy_release()} .
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE}
|
|
Packit Service |
4684c1 |
if the extension is not present, otherwise a negative error value.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Since:} 3.1.5
|
|
Packit Service |
4684c1 |
@end deftypefun
|