OPENSSL_sk_find_ex

Search for data; if absent, return the insertion index of the nearest greater element.

Synopsis

Declared in <openssl/stack.h>

int
OPENSSL_sk_find_ex(
    OPENSSL_STACK* st,
    void const* data);

Return Value

Matching index, or a negative encoding of the insertion point when not found.

Parameters

NameDescription
stStack to search (sorted when a comparison function is set).
dataKey passed to the comparison function.