Insert a duplicate of an extension into an X.509v3 extension stack.
Declared in <openssl/x509.h>
stack_st_X509_EXTENSION*
X509v3_add_ext(
stack_st_X509_EXTENSION** x,
X509_EXTENSION* ex,
int loc);
The (possibly newly allocated) extension stack, or NULL on error.
| Name | Description |
|---|---|
| x | Address of a STACK_OF(X509_EXTENSION) pointer; may point to NULL to allocate a new stack. |
| ex | Extension to duplicate into the stack (ownership retained by the caller). |
| loc | Insertion index, or -1 to append. |