//
// OCSP_REQ_CTX_i2d from 0x8b90ac to 0x8b9118 (108 bytes)
//
// 2 xrefs:
// > OCSP_REQ_CTX_set1_req @ 0x8b9184
// > ??> @ 0x6b1dc
//
// 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
//
int __fastcall OCSP_REQ_CTX_i2d(_DWORD *a1, unsigned __int8 *a2, size_t *a3)
{
int v6; // r0
v6 = ASN1_item_i2d(a3, nullptr, a2);
if ( BIO_printf(a1[4], "Content-Type: application/ocsp-request\r\nContent-Length: %d\r\n\r\n", v6) <= 0
|| ASN1_item_i2d_bio(a2, a1[4], a3) <= 0 )
{
return 0;
}
*a1 = 4101;
return 1;
}