[#PKCS12_pack_authsafes]
= PKCS12&lowbar;pack&lowbar;authsafes
:mrdocs:

Encode a stack of PKCS&num;7 authSafes contentInfos into a PKCS&num;12 structure&period;

== Synopsis

Declared in `&lt;openssl&sol;pkcs12&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS12&lowbar;pack&lowbar;authsafes(
    xref:PKCS12.adoc[PKCS12]* p12,
    xref:stack_st_PKCS7.adoc[stack&lowbar;st&lowbar;PKCS7]* safes);
----

== Return Value

1 on success, 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p12*
| PKCS&num;12 structure whose authSafes field is updated&period;
| *safes*
| Stack of PKCS&num;7 content infos to embed&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
