OCSP_resp_get0_id

Return internal pointers to the ResponderID fields of a basic OCSP response.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_resp_get0_id(
    OCSP_BASICRESP const* bs,
    ASN1_OCTET_STRING const** pid,
    X509_NAME const** pname);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
bsBasic OCSP response to query.
pidReceives the byKey OCTET STRING when that form is used; otherwise set to NULL.
pnameReceives the byName X509_NAME when that form is used; otherwise set to NULL.