Install a comparison function on a stack and mark it as unsorted.

Synopsis

Declared in <openssl/stack.h>

OPENSSL_sk_compfunc
OPENSSL_sk_set_cmp_func(
    OPENSSL_STACK* sk,
    OPENSSL_sk_compfunc cmp);

Return Value

Previous comparison function, or NULL.

Parameters

Name

Description

sk

Stack to update.

cmp

New comparison callback, or NULL to clear ordering.

Created with MrDocs