Create a secretBag safeBag and append it to a stack of safeBags.
Declared in <openssl/pkcs12.h>
PKCS12_SAFEBAG*
PKCS12_add_secret(
stack_st_PKCS12_SAFEBAG** pbags,
int nid_type,
unsigned char const* value,
int len);
The new safeBag, or NULL on error.
| 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. |