OPENSSL_sk_pop_free

Pop and free every element, then free the stack.

Synopsis

Declared in <openssl/stack.h>

void
OPENSSL_sk_pop_free(
    OPENSSL_STACK* st,
    void(* func)(void*));

Parameters

NameDescription
stStack to destroy, or NULL.
funcDestructor applied to each element (must accept the element pointer).