//
// ssl_dh_to_pkey from 0xfb6d1c to 0xfb6d64 (72 bytes)
//
// 4 xrefs:
// > ssl3_ctrl @ 0xfb6dcc
// > ssl3_ctx_ctrl @ 0xfb74d0
// > tls_construct_server_key_exchange @ 0xfd06a8
// > ??> @ 0x95bd8
//
// 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:15 +0000
//
__int64 __fastcall ssl_dh_to_pkey(__int64 result)
{
__int64 v1; // x19
bool v2; // cc
__int64 v3; // [xsp+28h] [xbp+28h]
if ( result )
{
v3 = result;
v1 = EVP_PKEY_new();
v2 = (int)EVP_PKEY_set1_DH(v1, v3) <= 0;
result = v1;
if ( v2 )
{
EVP_PKEY_free(v1);
return 0;
}
}
return result;
}