Allocate an empty stack with an optional comparison function.

Synopsis

Declared in <openssl/stack.h>

OPENSSL_STACK*
OPENSSL_sk_new(OPENSSL_sk_compfunc cmp);

Return Value

New stack, or NULL on failure; free with OPENSSL_sk_free().

Parameters

Name

Description

cmp

Comparison callback for OPENSSL_sk_find()/sort, or NULL.

Created with MrDocs