//
// SSL_use_certificate_ASN1 from 0xfc285c to 0xfc28e0 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0xfb068
//
// 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_use_certificate_ASN1(__int64 a1, __int64 a2, int a3)
{
__int64 v4; // x0
__int64 v5; // x19
unsigned int v6; // w20
__int64 v8; // [xsp+28h] [xbp+28h] BYREF
v8 = a2;
v4 = d2i_X509(0, &v8, a3);
v5 = v4;
if ( v4 )
{
v6 = SSL_use_certificate(a1, v4);
X509_free(v5);
return v6;
}
else
{
ERR_put_error(20, 199, 13, "ssl/ssl_rsa.c", 84);
return 0;
}
}