//
// X509_find_by_subject from 0xa53718 to 0xa53774 (92 bytes)
//
// 5 xrefs:
// > OCSP_basic_verify @ 0xa34640
// > OCSP_basic_verify @ 0xa34a68
// > OCSP_request_verify @ 0xa34c0c
// > OCSP_request_verify @ 0xa34c8c
// > ??> @ 0x7e7ec
//
// 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:24 +0000
//
int __fastcall X509_find_by_subject(_DWORD *a1, int a2)
{
signed int v4; // r4
int v5; // r6
int subject_name; // r0
int v7; // r0
unsigned int v8; // r1
v4 = 0;
do
{
v7 = OPENSSL_sk_num((int)a1);
v8 = v4;
if ( v4++ >= v7 )
return 0;
v5 = OPENSSL_sk_value(a1, v8);
subject_name = X509_get_subject_name(v5);
}
while ( X509_NAME_cmp(subject_name, a2) );
return v5;
}