OCSP_SINGLERESP_add1_ext_i2d

Encode value as a SingleResponse extension of type nid and append it.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_SINGLERESP_add1_ext_i2d(
    OCSP_SINGLERESP* x,
    int nid,
    void* value,
    int crit,
    unsigned long flags);

Return Value

1 on success, 0 on error, or -1 on a fatal error.

Parameters

NameDescription
xSingleResponse to update.
nidNID of the extension type to add.
valueNative extension structure encoded via i2d.
critNonzero to mark the extension critical.
flagsX509V3_ADD_* flags controlling replacement behaviour.