//
// sub_10DB8E4 from 0x10db8e4 to 0x10db958 (116 bytes)
//
// 2 xrefs:
// > engine_load_openssl_int @ 0x10dc0c0
// > engine_load_openssl_int @ 0x10dc0c8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:45 +0000
//
__int64 __fastcall sub_10DB8E4(__int64 a1, const char *a2)
{
__int64 result; // x0
_QWORD *v4; // x20
__int64 bio_PrivateKey; // x19
fprintf((FILE *)((char *)&_sF + 304), "(TEST_ENG_OPENSSL_PKEY)Loading Private key %s\n", a2);
result = BIO_new_file(a2, "r");
v4 = (_QWORD *)result;
if ( result )
{
bio_PrivateKey = PEM_read_bio_PrivateKey(result, nullptr, nullptr, nullptr);
BIO_free(v4);
return bio_PrivateKey;
}
return result;
}