//
// OCSP_request_set1_name from 0x10418d4 to 0x104196c (152 bytes)
//
// 2 xrefs:
// > OCSP_request_sign @ 0x1041a3c
// > ??> @ 0x46768
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:31 +0000
//
__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;
}
}