//
// cms_set1_SignerIdentifier from 0x876a1c to 0x876a98 (124 bytes)
//
// 3 xrefs:
// > CMS_add1_recipient_cert @ 0x874108
// > CMS_add1_signer @ 0x878040
// > ??> @ 0x6a1dc
//
// 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 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;
}