//
// ENGINE_load_ssl_client_cert from 0x7f849c to 0x7f85a8 (268 bytes)
//
// 2 xrefs:
// > ssl_do_client_cert_cb @ 0x7a4438
// > ??> @ 0x5d3ac
//
// 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 ENGINE_load_ssl_client_cert(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)
{
if ( a1 )
{
CRYPTO_THREAD_write_lock(global_engine_lock);
if ( *(_DWORD *)(a1 + 84) )
{
CRYPTO_THREAD_unlock(global_engine_lock);
if ( *(_DWORD *)(a1 + 68) )
return (*(int (__fastcall **)(int, int, int, int, int, int, int, int))(a1 + 68))(a1, a2, a3, a4, a5, a6, a7, a8);
ERR_put_error(38, 194, 125, "crypto/engine/eng_pkey.c", 135);
}
else
{
CRYPTO_THREAD_unlock(global_engine_lock);
ERR_put_error(38, 194, 117, "crypto/engine/eng_pkey.c", 129);
}
return 0;
}
else
{
ERR_put_error(38, 194, 67, "crypto/engine/eng_pkey.c", 122);
return 0;
}
}