//
// PKCS7_set_content from 0x828efc to 0x828f90 (148 bytes)
//
// 2 xrefs:
// > PKCS7_content_new @ 0x8291b8
// > ??> @ 0x65efc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall PKCS7_set_content(int a1, int a2)
{
char *v4; // r0
v4 = OBJ_obj2nid(*(_DWORD *)(a1 + 16));
if ( v4 == (_BYTE *)&dword_14 + 2 )
{
PKCS7_free(*(_DWORD **)(*(_DWORD *)(a1 + 20) + 20));
*(_DWORD *)(*(_DWORD *)(a1 + 20) + 20) = a2;
return 1;
}
else if ( v4 == (_BYTE *)&dword_18 + 1 )
{
PKCS7_free(*(_DWORD **)(*(_DWORD *)(a1 + 20) + 8));
*(_DWORD *)(*(_DWORD *)(a1 + 20) + 8) = a2;
return 1;
}
else
{
ERR_put_error(33, 109, 112, (int)"crypto/pkcs7/pk7_lib.c", 99);
return 0;
}
}