//
// SSL_CTX_use_certificate from 0xd44bfc to 0xd44ca0 (164 bytes)
//
// 6 xrefs:
// > sub_BB78D0 @ 0xbb8638
// > sub_BB78D0 @ 0xbb8674
// > SSL_CTX_use_certificate_file @ 0xd44d64
// > SSL_CTX_use_certificate_ASN1 @ 0xd44e34
// > SSL_CTX_use_certificate_chain_file @ 0xd45564
// > ??> @ 0x63978
//
// 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_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_D43F10(*(_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;
}
}