//
// CMS_RecipientInfo_set0_password from 0xe208b4 to 0xe20928 (116 bytes)
//
// 2 xrefs:
// > CMS_add0_recipient_password @ 0xe20afc
// > ??> @ 0x4f6f8
//
// 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
//
__int64 __fastcall CMS_RecipientInfo_set0_password(__int64 a1, char *a2, size_t a3)
{
__int64 v3; // x19
if ( *(_DWORD *)a1 == 3 )
{
v3 = *(_QWORD *)(a1 + 8);
*(_QWORD *)(v3 + 32) = a2;
if ( a2 )
{
if ( (a3 & 0x8000000000000000LL) != 0 )
a3 = strlen(a2);
}
*(_QWORD *)(v3 + 40) = a3;
return 1;
}
else
{
ERR_put_error(46, 168, 177, (__int64)"crypto/cms/cms_pwri.c", 26);
return 0;
}
}