PKCS12_SAFEBAG_create_secret

Create a secretBag safeBag with the supplied ASN.1 value.

Synopsis

Declared in <openssl/pkcs12.h>

PKCS12_SAFEBAG*
PKCS12_SAFEBAG_create_secret(
    int type,
    int vtype,
    unsigned char const* value,
    int len);

Return Value

New safeBag, or NULL on error.

Parameters

NameDescription
typeNID tagging the secret contents.
vtypeASN.1 type of value.
valueOctets of the secret value.
lenLength of value in bytes.