//
// OCSP_REQ_CTX_i2d from 0x10e1588 to 0x10e1618 (144 bytes)
//
// 2 xrefs:
// > OCSP_REQ_CTX_set1_req @ 0x10e1690
// > ??> @ 0x448a8
//
// 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:17:49 +0000
//
__int64 __fastcall OCSP_REQ_CTX_i2d(__int64 a1, __int64 a2, __int64 a3)
{
int v6; // w0
v6 = ASN1_item_i2d(a3, nullptr, a2);
if ( (int)BIO_printf(*(_QWORD *)(a1 + 32), "Content-Type: application/ocsp-request\r\nContent-Length: %d\r\n\r\n", v6) <= 0
|| (int)ASN1_item_i2d_bio(a2, *(_QWORD *)(a1 + 32), a3) <= 0 )
{
return 0;
}
*(_DWORD *)a1 = 4101;
return 1;
}