//
// SSL_CTX_use_certificate from 0xfc2f50 to 0xfc2ff4 (164 bytes)
//
// 6 xrefs:
// > sub_E2DA90 @ 0xe2e7f8
// > sub_E2DA90 @ 0xe2e834
// > SSL_CTX_use_certificate_file @ 0xfc30b8
// > SSL_CTX_use_certificate_ASN1 @ 0xfc3188
// > SSL_CTX_use_certificate_chain_file @ 0xfc38b8
// > ??> @ 0x87988
//
// 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:22 +0000
//
__int64 __fastcall SSL_CTX_use_certificate(__int64 a1, __int64 a2)
{
unsigned int v4; // w0
if ( a2 )
{
v4 = ssl_security_cert(0, a1, a2, 0, 1);
if ( v4 == 1 )
{
return sub_FC2264(*(_QWORD **)(a1 + 288), a2);
}
else
{
ERR_put_error(20, 171, v4, "ssl/ssl_rsa.c", 305);
return 0;
}
}
else
{
ERR_put_error(20, 171, 67, "ssl/ssl_rsa.c", 300);
return 0;
}
}