Debian Codegraph @

doc/functions/gnutls_ocsp_resp_verify_direct

raw
1
2
3
4
5 @deftypefun {int} {gnutls_ocsp_resp_verify_direct} (gnutls_ocsp_resp_const_t @var{resp}, gnutls_x509_crt_t @var{issuer}, unsigned int * @var{verify}, unsigned int @var{flags})
6 @var{resp}: should contain a @code{gnutls_ocsp_resp_t} type
7
8 @var{issuer}: certificate believed to have signed the response
9
10 @var{verify}: output variable with verification status, an @code{gnutls_ocsp_verify_reason_t}
11
12 @var{flags}: verification flags from @code{gnutls_certificate_verify_flags}
13
14 Verify signature of the Basic OCSP Response against the public key
15 in the @code{issuer} certificate.
16
17 The output @code{verify} variable will hold verification status codes
18 (e.g., @code{GNUTLS_OCSP_VERIFY_SIGNER_NOT_FOUND} ,
19 @code{GNUTLS_OCSP_VERIFY_INSECURE_ALGORITHM} ) which are only valid if the
20 function returned @code{GNUTLS_E_SUCCESS} .
21
22 Note that the function returns @code{GNUTLS_E_SUCCESS} even when
23 verification failed. The caller must always inspect the @code{verify} variable to find out the verification status.
24
25 The @code{flags} variable should be 0 for now.
26
27 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
28 negative error value.
29 @end deftypefun