Encode extension structure value and add/replace it on stack *x.
Declared in <openssl/x509v3.h>
int
X509V3_add1_i2d(
stack_st_X509_EXTENSION** x,
int nid,
void* value,
int crit,
unsigned long flags);
1 on success, 0 on error, or -1 when a replace was requested but no match existed.
| Name | Description |
|---|---|
| x | Address of the extension stack (allocated if NULL). |
| nid | Extension NID to create. |
| value | Extension-specific C structure understood by the X509V3 method for nid. |
| crit | Nonzero to mark the extension critical. |
| flags | X509V3_ADD_* behaviour flags (append, replace, keep existing, …). |