Blame doc/functions/dane_verify_session_crt

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {dane_verify_session_crt} (dane_state_t @var{s}, gnutls_session_t @var{session}, const char * @var{hostname}, const char * @var{proto}, unsigned int @var{port}, unsigned int @var{sflags}, unsigned int @var{vflags}, unsigned int * @var{verify})
Packit aea12f
@var{s}: A DANE state structure (may be NULL)
Packit aea12f
Packit aea12f
@var{session}: A gnutls session
Packit aea12f
Packit aea12f
@var{hostname}: The hostname associated with the chain
Packit aea12f
Packit aea12f
@var{proto}: The protocol of the service connecting (e.g. tcp)
Packit aea12f
Packit aea12f
@var{port}: The port of the service connecting (e.g. 443)
Packit aea12f
Packit aea12f
@var{sflags}: Flags for the initialization of  @code{s} (if NULL)
Packit aea12f
Packit aea12f
@var{vflags}: Verification flags; an OR'ed list of @code{dane_verify_flags_t} .
Packit aea12f
Packit aea12f
@var{verify}: An OR'ed list of @code{dane_verify_status_t} .
Packit aea12f
Packit aea12f
This function will verify session's certificate chain against the
Packit aea12f
CA constrains and/or the certificate available via DANE.
Packit aea12f
See @code{dane_verify_crt()}  for more information.
Packit aea12f
Packit aea12f
This will not verify the chain for validity; unless the DANE
Packit aea12f
verification is restricted to end certificates, this must be
Packit aea12f
be performed separately using @code{gnutls_certificate_verify_peers3()} .
Packit aea12f
Packit aea12f
@strong{Returns:} a negative error code on error and @code{DANE_E_SUCCESS}  (0)
Packit aea12f
when the DANE entries were successfully parsed, irrespective of
Packit aea12f
whether they were verified (see  @code{verify} for that information). If
Packit aea12f
no usable entries were encountered @code{DANE_E_REQUESTED_DATA_NOT_AVAILABLE} 
Packit aea12f
will be returned.
Packit aea12f
@end deftypefun