//
// SSL_CTX_set_client_cert_engine from 0x79eb28 to 0x79ebc4 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0x5cc8c
//
// 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 SSL_CTX_set_client_cert_engine(int a1, int a2)
{
int ssl_client_cert_function; // r4
if ( ENGINE_init(a2) )
{
ssl_client_cert_function = ENGINE_get_ssl_client_cert_function(a2);
if ( ssl_client_cert_function )
{
ssl_client_cert_function = 1;
*(_DWORD *)(a1 + 276) = a2;
}
else
{
ERR_put_error(20, 290, 331, "ssl/ssl_sess.c", 1135);
ENGINE_finish(a2);
}
return ssl_client_cert_function;
}
else
{
ERR_put_error(20, 290, 38, "ssl/ssl_sess.c", 1130);
return 0;
}
}