//
// CMS_RecipientInfo_set0_password from 0x875ee0 to 0x875f60 (128 bytes)
//
// 2 xrefs:
// > CMS_add0_recipient_password @ 0x876140
// > ??> @ 0x6a52c
//
// 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_RecipientInfo_set0_password(_DWORD *a1, char *a2, size_t a3)
{
int v3; // r4
size_t v4; // r3
if ( *a1 == 3 )
{
v3 = a1[1];
if ( a2 )
v4 = a3 >> 31;
else
v4 = 0;
*(_DWORD *)(v3 + 16) = a2;
if ( v4 )
a3 = strlen(a2);
*(_DWORD *)(v3 + 20) = a3;
return 1;
}
else
{
ERR_put_error(46, 168, 177, (int)"crypto/cms/cms_pwri.c", 26);
return 0;
}
}