X509_add_cert

Add a certificate to a stack of X.509 certificates under flags.

Synopsis

Declared in <openssl/x509.h>

int
X509_add_cert(
    stack_st_X509* sk,
    X509* cert,
    int flags);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
skDestination certificate stack.
certCertificate to add; must not be NULL.
flagsCombination of X509_ADD_FLAG_* controlling reference counting, order, and duplicates.