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

Synopsis

Declared in <openssl/pkcs12.h>

PKCS12_SAFEBAG*
PKCS12_add_secret(
    stack_st_PKCS12_SAFEBAG** pbags,
    int nid_type,
    unsigned char const* value,
    int len);

Return Value

The new safeBag, or NULL on error.

Parameters

Name

Description

pbags

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

nid_type

NID tagging the secret contents.

value

Octets of the secret value.

len

Length of value in bytes.

Created with MrDocs