//
// OCSP_response_get1_basic from 0x81dc88 to 0x81dd18 (144 bytes)
//
// 4 xrefs:
// > sub_642BAC @ 0x643678
// > SSL_get0_peer_scts @ 0x79a774
// > OCSP_RESPONSE_print @ 0x81f378
// > ??> @ 0x5502c
//
// 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_response_get1_basic(int a1)
{
int *v1; // r4
v1 = *(int **)(a1 + 4);
if ( v1 )
{
if ( OBJ_obj2nid(*v1) == (_BYTE *)&dword_16C + 1 )
return ASN1_item_unpack(v1[1], OCSP_BASICRESP_it);
ERR_put_error(39, 111, 104, (int)"crypto/ocsp/ocsp_cl.c", 157);
}
else
{
ERR_put_error(39, 111, 108, (int)"crypto/ocsp/ocsp_cl.c", 153);
}
return 0;
}