//
// OCSP_request_set1_name from 0xa32660 to 0xa326c0 (96 bytes)
//
// 2 xrefs:
// > OCSP_request_sign @ 0xa32770
// > ??> @ 0x7e23c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:06 +0000
//
int __fastcall OCSP_request_set1_name(int a1, int a2)
{
int v4; // r0
_DWORD *v5; // r4
int v6; // r5
v4 = GENERAL_NAME_new();
v5 = (_DWORD *)v4;
if ( !v4 )
return 0;
if ( X509_NAME_set(v4 + 4, a2) )
{
*v5 = 4;
v6 = 1;
GENERAL_NAME_free(*(_DWORD *)(a1 + 4));
*(_DWORD *)(a1 + 4) = v5;
return v6;
}
GENERAL_NAME_free(v5);
return 0;
}