OCSP_basic_verify

Verify the signature and optional certificate path of a basic OCSP response.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_basic_verify(
    OCSP_BASICRESP* bs,
    stack_st_X509* certs,
    X509_STORE* st,
    unsigned long flags);

Return Value

1 on successful verification, or 0 on failure.

Parameters

NameDescription
bsBasic OCSP response to verify.
certsOptional untrusted certificates used to locate or build the signer path, or NULL.
stTrusted certificate store used for path validation.
flagsOCSP_* / X509 verify flags controlling verification behaviour.