Blame doc/functions/gnutls_x509_name_constraints_get_permitted
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_x509_name_constraints_get_permitted} (gnutls_x509_name_constraints_t @var{nc}, unsigned @var{idx}, unsigned * @var{type}, gnutls_datum_t * @var{name})
|
|
Packit Service |
4684c1 |
@var{nc}: the extracted name constraints
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{idx}: the index of the constraint
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{type}: the type of the constraint (of type gnutls_x509_subject_alt_name_t)
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{name}: the name in the constraint (of the specific type)
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will return an intermediate type containing
|
|
Packit Service |
4684c1 |
the name constraints of the provided CA certificate. That
|
|
Packit Service |
4684c1 |
structure can be used in combination with @code{gnutls_x509_name_constraints_check()}
|
|
Packit Service |
4684c1 |
to verify whether a server's name is in accordance with the constraints.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The name should be treated as constant and valid for the lifetime of @code{nc} .
|
|
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.3.0
|
|
Packit Service |
4684c1 |
@end deftypefun
|