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

Name

Description

chain

Stack of X509 objects to copy; may be NULL.

Created with MrDocs