//
// SSL_CTX_use_certificate from 0x79c1e4 to 0x79c288 (164 bytes)
//
// 6 xrefs:
// > sub_643938 @ 0x64430c
// > sub_643938 @ 0x644332
// > SSL_CTX_use_certificate_file @ 0x79c350
// > SSL_CTX_use_certificate_ASN1 @ 0x79c444
// > SSL_CTX_use_certificate_chain_file @ 0x79cb24
// > ??> @ 0x5539c
//
// 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_use_certificate(int a1, int a2)
{
int v4; // r0
if ( a2 )
{
v4 = ssl_security_cert(0, a1, a2, 0, 1);
if ( v4 == 1 )
{
return sub_79B558(*(_DWORD **)(a1 + 176), 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;
}
}