Blame doc/functions/gnutls_x509_trust_list_verify_named_crt

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_x509_trust_list_verify_named_crt} (gnutls_x509_trust_list_t @var{list}, gnutls_x509_crt_t @var{cert}, const void * @var{name}, size_t @var{name_size}, unsigned int @var{flags}, unsigned int * @var{voutput}, gnutls_verify_output_function @var{func})
Packit aea12f
@var{list}: The list
Packit aea12f
Packit aea12f
@var{cert}: is the certificate to be verified
Packit aea12f
Packit aea12f
@var{name}: is the certificate's name
Packit aea12f
Packit aea12f
@var{name_size}: is the certificate's name size
Packit aea12f
Packit aea12f
@var{flags}: Flags that may be used to change the verification algorithm. Use OR of the gnutls_certificate_verify_flags enumerations.
Packit aea12f
Packit aea12f
@var{voutput}: will hold the certificate verification output.
Packit aea12f
Packit aea12f
@var{func}: If non-null will be called on each chain element verification with the output.
Packit aea12f
Packit aea12f
This function will try to find a certificate that is associated with the provided
Packit aea12f
name --see @code{gnutls_x509_trust_list_add_named_crt()} . If a match is found the
Packit aea12f
certificate is considered valid. In addition to that this function will also 
Packit aea12f
check CRLs. The  @code{voutput} parameter will hold an OR'ed sequence of 
Packit aea12f
@code{gnutls_certificate_status_t}  flags.
Packit aea12f
Packit aea12f
Additionally a certificate verification profile can be specified
Packit aea12f
from the ones in @code{gnutls_certificate_verification_profiles_t}  by
Packit aea12f
ORing the result of @code{GNUTLS_PROFILE_TO_VFLAGS()}  to the verification
Packit aea12f
flags.
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit aea12f
negative error value.
Packit aea12f
Packit aea12f
@strong{Since:} 3.0.0
Packit aea12f
@end deftypefun