//
// PKCS12_pack_p7data from 0xad0198 to 0xad0270 (216 bytes)
//
// 1 xrefs:
// > ??> @ 0x84e0c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:09:23 +0000
//
_DWORD *__fastcall PKCS12_pack_p7data(size_t *a1)
{
_DWORD *v2; // r4
int v3; // r0
v2 = PKCS7_new();
if ( v2 )
{
v2[4] = OBJ_nid2obj(0x15u);
v3 = ASN1_OCTET_STRING_new();
v2[5] = v3;
if ( v3 )
{
if ( ASN1_item_pack(a1, PKCS12_SAFEBAGS_it, v2 + 5) )
return v2;
ERR_put_error(35, 114, 100, (int)"crypto/pkcs12/p12_add.c", 61);
}
else
{
ERR_put_error(35, 114, 65, (int)"crypto/pkcs12/p12_add.c", 56);
}
PKCS7_free(v2);
return nullptr;
}
else
{
ERR_put_error(35, 114, 65, (int)"crypto/pkcs12/p12_add.c", 51);
return nullptr;
}
}