Create a certBag safeBag and append it to a stack of safeBags.

Synopsis

Declared in <openssl/pkcs12.h>

PKCS12_SAFEBAG*
PKCS12_add_cert(
    stack_st_PKCS12_SAFEBAG** pbags,
    X509* cert);

Return Value

The new safeBag, or NULL on error.

Parameters

Name

Description

pbags

Address of safeBag stack pointer (created if *`pbags` is NULL).

cert

Certificate to add.

Created with MrDocs