//
// SSL_CTX_set_client_cert_engine from 0xfc5764 to 0xfc5810 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0xcd6f0
//
// 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:15:23 +0000
//
__int64 __fastcall SSL_CTX_set_client_cert_engine(__int64 a1, __int64 a2)
{
__int64 ssl_client_cert_function; // x0
unsigned int v5; // w19
if ( (unsigned int)ENGINE_init(a2) )
{
ssl_client_cert_function = ENGINE_get_ssl_client_cert_function(a2);
v5 = ssl_client_cert_function;
if ( ssl_client_cert_function )
{
*(_QWORD *)(a1 + 440) = a2;
return 1;
}
else
{
ERR_put_error(20, 290, 331, "ssl/ssl_sess.c", 1135);
ENGINE_finish(a2);
}
return v5;
}
else
{
ERR_put_error(20, 290, 38, "ssl/ssl_sess.c", 1130);
return 0;
}
}