OPENSSL_sk_dup

Shallow-copy a stack (element pointers are duplicated, not deep-copied).

Synopsis

Declared in <openssl/stack.h>

OPENSSL_STACK*
OPENSSL_sk_dup(OPENSSL_STACK const* st);

Return Value

New stack with the same element pointers, or NULL on failure.

Parameters

NameDescription
stSource stack.