//
// X509_get1_ocsp from 0xa7279c to 0xa728bc (288 bytes)
//
// 1 xrefs:
// > ??> @ 0x8325c
//
// 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:42 +0000
//
int *__fastcall X509_get1_ocsp(int a1)
{
_DWORD *ext_d2i; // r6
int *v2; // r7
signed int i; // r4
int *v4; // r5
_DWORD *v5; // r3
_DWORD *v6; // r5
int v7; // r1
void *v8; // r1
ext_d2i = (_DWORD *)X509_get_ext_d2i(a1);
if ( !ext_d2i )
return nullptr;
v2 = nullptr;
for ( i = 0; i < OPENSSL_sk_num((int)ext_d2i); ++i )
{
v4 = (int *)OPENSSL_sk_value(ext_d2i, i);
if ( OBJ_obj2nid(*v4) == (_BYTE *)&dword_B0 + 2 )
{
v5 = (_DWORD *)v4[1];
if ( *v5 == 6 )
{
v6 = (_DWORD *)v5[1];
if ( v6[1] == 22 )
{
v7 = v6[2];
if ( v7 )
{
if ( *v6 )
{
if ( !v2 )
{
v2 = OPENSSL_sk_new((int)sub_A70D80);
if ( !v2 )
goto LABEL_15;
v7 = v6[2];
}
if ( OPENSSL_sk_find((int)v2, v7) == -1 )
{
v8 = CRYPTO_strdup((const char *)v6[2], (int)"crypto/x509v3/v3_utl.c", 470);
if ( !v8 || !OPENSSL_sk_push(v2, (int)v8) )
{
X509_email_free((int)v2);
LABEL_15:
v2 = nullptr;
break;
}
}
}
}
}
}
}
}
AUTHORITY_INFO_ACCESS_free(ext_d2i);
return v2;
}