//
// cms_set1_SignerIdentifier from 0xa8b61c to 0xa8b698 (124 bytes)
//
// 3 xrefs:
// > CMS_add1_recipient_cert @ 0xa88d08
// > CMS_add1_signer @ 0xa8cc40
// > ??> @ 0x83c5c
//
// 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:08:54 +0000
//
int __fastcall cms_set1_SignerIdentifier(_DWORD *a1, int a2, int a3)
{
if ( a3 )
{
if ( a3 != 1 )
{
ERR_put_error(46, 146, 150, (int)"crypto/cms/cms_sd.c", 165);
return 0;
}
if ( !cms_set1_keyid(a1 + 1, a2) )
return 0;
}
else if ( !cms_set1_ias((_DWORD **)a1 + 1, a2) )
{
return 0;
}
*a1 = a3;
return 1;
}