//
// OCSP_accept_responses_new from 0x81e670 to 0x81e710 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x64c0c
//
// 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_accept_responses_new(char **a1)
{
int v2; // r5
char *v3; // r0
char **v4; // r4
char *v5; // t1
char *v6; // r0
char **v7; // r1
int v8; // r4
v2 = OPENSSL_sk_new_null(a1);
if ( v2 )
{
if ( a1 )
{
v3 = *a1;
if ( *a1 )
{
v4 = a1 + 1;
do
{
v6 = OBJ_txt2nid(v3);
if ( v6 && (v7 = OBJ_nid2obj((unsigned int)v6)) != nullptr )
{
OPENSSL_sk_push(v2, v7);
if ( !v4 )
break;
}
else if ( !v4 )
{
break;
}
v5 = *v4++;
v3 = v5;
}
while ( v5 );
}
}
v8 = X509V3_EXT_i2d(368, 0, v2);
}
else
{
v8 = 0;
}
OPENSSL_sk_pop_free(v2, ASN1_OBJECT_free);
return v8;
}