[#PKCS12_add_secret] = PKCS12_add_secret :mrdocs: Create a secretBag safeBag and append it to a stack of safeBags. == Synopsis Declared in `<openssl/pkcs12.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:PKCS12_SAFEBAG.adoc[PKCS12_SAFEBAG]* PKCS12_add_secret( xref:stack_st_PKCS12_SAFEBAG.adoc[stack_st_PKCS12_SAFEBAG]** pbags, int nid_type, unsigned char const* value, int len); ---- == Return Value The new safeBag, or NULL on error. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#