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

Name

Description

bs

Basic OCSP response to query.

pid

Receives a new OCTET STRING copy when the ID is byKey; otherwise set to NULL.

pname

Receives a new X509_NAME copy when the ID is byName; otherwise set to NULL.

Created with MrDocs