OCSP_SINGLERESP_get1_ext_d2i

Decode the first SingleResponse extension of type nid into its native structure.

Synopsis

Declared in <openssl/ocsp.h>

void*
OCSP_SINGLERESP_get1_ext_d2i(
    OCSP_SINGLERESP* x,
    int nid,
    int* crit,
    int* idx);

Return Value

Newly allocated decoded extension value, or NULL if absent or on error.

Parameters

NameDescription
xSingleResponse to query.
nidNID of the extension type to extract.
critOptional output set to 1 if critical, 0 if not, or -1 on error; may be NULL.
idxOptional in/out extension index for X509V3_get_d2i-style iteration; may be NULL.