Blame doc/functions/gnutls_x509_trust_list_verify_named_crt

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@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 Service 4684c1
@var{list}: The list
Packit Service 4684c1
Packit Service 4684c1
@var{cert}: is the certificate to be verified
Packit Service 4684c1
Packit Service 4684c1
@var{name}: is the certificate's name
Packit Service 4684c1
Packit Service 4684c1
@var{name_size}: is the certificate's name size
Packit Service 4684c1
Packit Service 4684c1
@var{flags}: Flags that may be used to change the verification algorithm. Use OR of the gnutls_certificate_verify_flags enumerations.
Packit Service 4684c1
Packit Service 4684c1
@var{voutput}: will hold the certificate verification output.
Packit Service 4684c1
Packit Service 4684c1
@var{func}: If non-null will be called on each chain element verification with the output.
Packit Service 4684c1
Packit Service 4684c1
This function will try to find a certificate that is associated with the provided
Packit Service 4684c1
name --see @code{gnutls_x509_trust_list_add_named_crt()} . If a match is found the
Packit Service 4684c1
certificate is considered valid. In addition to that this function will also 
Packit Service 4684c1
check CRLs. The  @code{voutput} parameter will hold an OR'ed sequence of 
Packit Service 4684c1
@code{gnutls_certificate_status_t}  flags.
Packit Service 4684c1
Packit Service 4684c1
Additionally a certificate verification profile can be specified
Packit Service 4684c1
from the ones in @code{gnutls_certificate_verification_profiles_t}  by
Packit Service 4684c1
ORing the result of @code{GNUTLS_PROFILE_TO_VFLAGS()}  to the verification
Packit Service 4684c1
flags.
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.
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 3.0.0
Packit Service 4684c1
@end deftypefun