Create a secretBag safeBag with the supplied ASN.1 value.
Declared in <openssl/pkcs12.h>
PKCS12_SAFEBAG*
PKCS12_SAFEBAG_create_secret(
int type,
int vtype,
unsigned char const* value,
int len);
New safeBag, or NULL on error.
| Name | Description |
|---|---|
| type | NID tagging the secret contents. |
| vtype | ASN.1 type of value. |
| value | Octets of the secret value. |
| len | Length of value in bytes. |