//
// X509_find_by_subject from 0xde69ec to 0xde6a68 (124 bytes)
//
// 5 xrefs:
// > OCSP_basic_verify @ 0xdc554c
// > OCSP_basic_verify @ 0xdc596c
// > OCSP_request_verify @ 0xdc5ad0
// > OCSP_request_verify @ 0xdc5b8c
// > ??> @ 0xb6280
//
// 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
//
__int64 __fastcall X509_find_by_subject(unsigned int *a1, __int64 a2)
{
int v4; // w19
__int64 v5; // x21
__int64 subject_name; // x0
bool v7; // cc
int v8; // w1
v4 = 0;
do
{
v7 = v4 < (int)OPENSSL_sk_num(a1);
v8 = v4++;
if ( !v7 )
return 0;
v5 = OPENSSL_sk_value((__int64)a1, v8);
subject_name = X509_get_subject_name(v5);
}
while ( (unsigned int)X509_NAME_cmp(subject_name, a2) );
return v5;
}