//
// ssl_cert_clear_certs from 0x9a5910 to 0x9a5988 (120 bytes)
//
// 3 xrefs:
// > ssl_cert_free @ 0x9a59e0
// > SSL_certs_clear @ 0x9ab318
// > ??> @ 0x74bfc
//
// 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:06:50 +0000
//
int __fastcall ssl_cert_clear_certs(int result)
{
_DWORD *v1; // r4
_DWORD *v2; // r7
int v3; // r0
int v4; // r0
if ( result )
{
v1 = (_DWORD *)result;
v2 = (_DWORD *)(result + 140);
do
{
X509_free(v1[5]);
v3 = v1[6];
v1[5] = 0;
EVP_PKEY_free(v3);
v4 = v1[7];
v1[6] = 0;
OPENSSL_sk_pop_free(v4, X509_free);
v1[7] = 0;
result = CRYPTO_free(v1[8], "ssl/ssl_cert.c", 225);
v1 += 5;
v1[3] = 0;
v1[4] = 0;
}
while ( v1 != v2 );
}
return result;
}