Encode value as a basic-response extension of type nid and append it.
Declared in <openssl/ocsp.h>
int
OCSP_BASICRESP_add1_ext_i2d(
OCSP_BASICRESP* x,
int nid,
void* value,
int crit,
unsigned long flags);
1 on success, 0 on error, or -1 on a fatal error.
| Name | Description |
|---|---|
| x | Basic OCSP response to update. |
| nid | NID of the extension type to add. |
| value | Native extension structure encoded via i2d. |
| crit | Nonzero to mark the extension critical. |
| flags | X509V3_ADD_* flags controlling replacement behaviour. |