OPENSSL_sk_value

Return the element at index idx in a stack (no bounds checking beyond returning NULL).

Synopsis

Declared in <openssl/stack.h>

void*
OPENSSL_sk_value(
    OPENSSL_STACK const* st,
    int idx);

Return Value

Element pointer, or NULL if idx is out of range.

Parameters

NameDescription
stStack to query.
idxZero-based index.