Deep‐copy a stack by duplicating each element with c.
Synopsis
Declared in <openssl/stack.h>
OPENSSL_STACK*
OPENSSL_sk_deep_copy(
OPENSSL_STACK const* st,
OPENSSL_sk_copyfunc c,
OPENSSL_sk_freefunc f);
Return Value
Newly allocated stack, or NULL on failure.
Parameters
Name |
Description |
st |
Source stack. |
c |
Element copy callback. |
f |
Element free callback used to clean up on failure (and by callers later). |
Created with MrDocs