X509_chain_up_ref

Duplicate a certificate stack and up-ref every certificate it contains.

Synopsis

Declared in <openssl/x509.h>

stack_st_X509*
X509_chain_up_ref(stack_st_X509* chain);

Return Value

New stack with each certificate's reference count increased, or NULL on error.

Parameters

NameDescription
chainStack of X509 objects to copy; may be NULL.