| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {dane_verify_crt_raw} (dane_state_t @var{s}, const gnutls_datum_t * @var{chain}, unsigned @var{chain_size}, gnutls_certificate_type_t @var{chain_type}, dane_query_t @var{r}, unsigned int @var{sflags}, unsigned int @var{vflags}, unsigned int * @var{verify}) |
| 6 |
@var{s}: A DANE state structure (may be NULL) |
| 7 |
|
| 8 |
@var{chain}: A certificate chain |
| 9 |
|
| 10 |
@var{chain_size}: The size of the chain |
| 11 |
|
| 12 |
@var{chain_type}: The type of the certificate chain |
| 13 |
|
| 14 |
@var{r}: DANE data to check against |
| 15 |
|
| 16 |
@var{sflags}: Flags for the initialization of @code{s} (if NULL) |
| 17 |
|
| 18 |
@var{vflags}: Verification flags; an OR'ed list of @code{dane_verify_flags_t} . |
| 19 |
|
| 20 |
@var{verify}: An OR'ed list of @code{dane_verify_status_t} . |
| 21 |
|
| 22 |
This is the low-level function of @code{dane_verify_crt()} . See the |
| 23 |
high level function for documentation. |
| 24 |
|
| 25 |
This function does not perform any resolving, it utilizes |
| 26 |
cached entries from @code{r} . |
| 27 |
|
| 28 |
@strong{Returns:} a negative error code on error and @code{DANE_E_SUCCESS} (0) |
| 29 |
when the DANE entries were successfully parsed, irrespective of |
| 30 |
whether they were verified (see @code{verify} for that information). If |
| 31 |
no usable entries were encountered @code{DANE_E_REQUESTED_DATA_NOT_AVAILABLE} |
| 32 |
will be returned. |
| 33 |
@end deftypefun |