//
// SSL_CTX_use_certificate from 0x9b0de8 to 0x9b0e8c (164 bytes)
//
// 6 xrefs:
// > sub_8539B8 @ 0x85438c
// > sub_8539B8 @ 0x8543b2
// > SSL_CTX_use_certificate_file @ 0x9b0f54
// > SSL_CTX_use_certificate_ASN1 @ 0x9b1048
// > SSL_CTX_use_certificate_chain_file @ 0x9b1728
// > ??> @ 0x682cc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:57 +0000
//
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_9B015C(*(_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;
}
}