//
// SSL_CTX_set_client_cert_engine from 0xd47410 to 0xd474bc (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x9bf58
//
// 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 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;
}
}