[#PKCS12_item_pack_safebag] = PKCS12_item_pack_safebag :mrdocs: Pack an ASN.1 object into a certBag or crlBag safeBag. == Synopsis Declared in `<openssl/pkcs12.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:PKCS12_SAFEBAG.adoc[PKCS12_SAFEBAG]* PKCS12_item_pack_safebag( void* obj, xref:ASN1_ITEM.adoc[ASN1_ITEM] const* it, int nid1, int nid2); ---- == Return Value New safeBag, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *obj* | Object to pack (e.g. X509 or X509_CRL). | *it* | ASN.1 item descriptor for `obj.` | *nid1* | NID of the inner bag type (e.g. NID_x509Certificate). | *nid2* | NID of the outer safeBag type (e.g. NID_certBag). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#