OPENSSL_sk_find

Find the first stack element that compares equal to data.

Synopsis

Declared in <openssl/stack.h>

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

Return Value

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

Parameters

NameDescription
stStack to search (uses its comparison function when set).
dataValue to locate.