//
// i2d_RSA_PUBKEY from 0x84a928 to 0x84a9a0 (120 bytes)
//
// 6 xrefs:
// > ??> @ 0x6506c
// > PEM_write_bio_RSA_PUBKEY @ 0x820a1c
// > PEM_write_RSA_PUBKEY @ 0x820a6c
// > i2d_RSA_PUBKEY_fp @ 0x84853c
// > i2d_RSA_PUBKEY_bio @ 0x8485e0
// > ??> @ 0xab86b0
//
// 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 i2d_RSA_PUBKEY(int result, int *a2)
{
int v3; // r4
_DWORD *v4; // r0
int v5; // r6
int v6; // r4
if ( result )
{
v3 = result;
v4 = EVP_PKEY_new();
v5 = (int)v4;
if ( v4 )
{
EVP_PKEY_set1_RSA(v4, v3);
v6 = i2d_PUBKEY(v5, a2);
EVP_PKEY_free(v5);
return v6;
}
else
{
ERR_put_error(13, 165, 65, (int)"crypto/x509/x_pubkey.c", 248);
return 0;
}
}
return result;
}