OCSP_resp_get1_id

Return a copy of the ResponderID from a basic OCSP response.

Synopsis

Declared in <openssl/ocsp.h>

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

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
bsBasic OCSP response to query.
pidReceives a new OCTET STRING copy when the ID is byKey; otherwise set to NULL.
pnameReceives a new X509_NAME copy when the ID is byName; otherwise set to NULL.