//
// SSL_use_RSAPrivateKey from 0x9b07d0 to 0x9b08a4 (212 bytes)
//
// 3 xrefs:
// > SSL_use_RSAPrivateKey_file @ 0x9b0960
// > SSL_use_RSAPrivateKey_ASN1 @ 0x9b0a40
// > ??> @ 0x762cc
//
// 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:56 +0000
//
int __fastcall SSL_use_RSAPrivateKey(int a1, int a2)
{
int v4; // r5
int v5; // r4
if ( a2 )
{
v4 = EVP_PKEY_new();
if ( v4 )
{
RSA_up_ref(a2);
if ( EVP_PKEY_assign(v4, 6, a2) <= 0 )
{
RSA_free(a2);
EVP_PKEY_free(v4);
return 0;
}
else
{
v5 = sub_9B02F8(*(_DWORD **)(a1 + 200), 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;
}
}