//
// OCSP_request_set1_name from 0xdc3574 to 0xdc360c (152 bytes)
//
// 2 xrefs:
// > OCSP_request_sign @ 0xdc36dc
// > ??> @ 0x2f058
//
// 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 OCSP_request_set1_name(__int64 a1, __int64 a2)
{
__int64 v3; // x0
_DWORD *v4; // x19
__int64 v5; // x0
v3 = GENERAL_NAME_new();
v4 = (_DWORD *)v3;
if ( !v3 )
return 0;
if ( (unsigned int)X509_NAME_set(v3 + 8, a2) )
{
v5 = *(_QWORD *)(a1 + 8);
*v4 = 4;
GENERAL_NAME_free(v5);
*(_QWORD *)(a1 + 8) = v4;
return 1;
}
else
{
GENERAL_NAME_free(v4);
return 0;
}
}