//
// SSL_use_RSAPrivateKey from 0xfc28e0 to 0xfc29cc (236 bytes)
//
// 3 xrefs:
// > SSL_use_RSAPrivateKey_file @ 0xfc2a88
// > SSL_use_RSAPrivateKey_ASN1 @ 0xfc2b80
// > ??> @ 0x98a70
//
// 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_RSAPrivateKey(__int64 a1, __int64 a2)
{
__int64 v4; // x20
unsigned int v5; // w19
if ( a2 )
{
v4 = EVP_PKEY_new();
if ( v4 )
{
RSA_up_ref(a2);
if ( (int)EVP_PKEY_assign(v4, 6, a2) <= 0 )
{
RSA_free(a2);
EVP_PKEY_free(v4);
return 0;
}
else
{
v5 = sub_FC23F8(*(_QWORD **)(a1 + 328), v4);
EVP_PKEY_free(v4);
return v5;
}
}
else
{
ERR_put_error(20, 204, 6, "ssl/ssl_rsa.c", 104);
return 0;
}
}
else
{
ERR_put_error(20, 204, 67, "ssl/ssl_rsa.c", 100);
return 0;
}
}