OPENSSL_sk_find_all

Search for data and report how many matching elements exist.

Synopsis

Declared in <openssl/stack.h>

int
OPENSSL_sk_find_all(
    OPENSSL_STACK* st,
    void const* data,
    int* pnum);

Return Value

Zero-based index of a match, or -1 if not found.

Parameters

NameDescription
stStack to search (sorted when a comparison function is set).
dataValue to locate.
pnumOptional address updated to the number of matches (1 or 0 when no comparison function is set).