//
// i2d_RSA_PUBKEY from 0xdf22c0 to 0xdf2340 (128 bytes)
//
// 6 xrefs:
// > ??> @ 0x5a6f0
// > PEM_write_bio_RSA_PUBKEY @ 0xdc641c
// > PEM_write_RSA_PUBKEY @ 0xdc6468
// > i2d_RSA_PUBKEY_fp @ 0xdf0114
// > i2d_RSA_PUBKEY_bio @ 0xdf0194
// > ??> @ 0x122ae88
//
// 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
//
__int64 __fastcall i2d_RSA_PUBKEY(__int64 result, __int64 *a2)
{
__int64 v2; // x19
_DWORD *v4; // x0
__int64 v5; // x20
unsigned int v6; // w19
v2 = result;
if ( result )
{
v4 = EVP_PKEY_new();
v5 = (__int64)v4;
if ( v4 )
{
EVP_PKEY_set1_RSA((__int64)v4, v2);
v6 = i2d_PUBKEY(v5, a2);
EVP_PKEY_free(v5);
return v6;
}
else
{
ERR_put_error(13, 165, 65, (__int64)"crypto/x509/x_pubkey.c", 248);
return 0;
}
}
return result;
}