X509v3_delete_ext

Remove and return the extension at index loc from an extension stack.

Synopsis

Declared in <openssl/x509.h>

X509_EXTENSION*
X509v3_delete_ext(
    stack_st_X509_EXTENSION* x,
    int loc);

Return Value

Detached X509_EXTENSION (caller frees), or NULL if loc is invalid.

Parameters

NameDescription
xExtension stack to update.
locZero-based extension index.