OPENSSL_sk_insert

Insert data before index where (appending if where is out of range).

Synopsis

Declared in <openssl/stack.h>

int
OPENSSL_sk_insert(
    OPENSSL_STACK* sk,
    void const* data,
    int where);

Return Value

New number of elements, or 0 on failure.

Parameters

NameDescription
skStack to modify.
dataElement pointer to store (not copied).
whereInsertion index.