//
// SSL_dane_enable from 0xfbea9c to 0xfbebf0 (340 bytes)
//
// 1 xrefs:
// > ??> @ 0x88cc0
//
// 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:19 +0000
//
__int64 __fastcall SSL_dane_enable(_QWORD *a1, char *a2)
{
__int64 v2; // x2
unsigned int v5; // w19
_QWORD *v6; // x19
__int64 result; // x0
__int64 v8; // x0
__int64 v9; // x1
v2 = a1[55];
v5 = *(unsigned __int8 *)(v2 + 792);
if ( *(_BYTE *)(v2 + 792) )
{
v6 = a1 + 24;
if ( a1[25] )
{
ERR_put_error(20, 395, 172, "ssl/ssl_lib.c", 833);
return 0;
}
else if ( a1[69] || SSL_ctrl((__int64)a1, 55, 0, a2) )
{
if ( (unsigned int)X509_VERIFY_PARAM_set1_host(a1[23], a2) )
{
v8 = a1[55];
*((_DWORD *)v6 + 11) = -1;
*((_DWORD *)v6 + 12) = -1;
v8 += 776;
a1[24] = v8;
v9 = OPENSSL_sk_new_null(v8);
v6[1] = v9;
result = 1;
if ( !v9 )
{
ERR_put_error(20, 395, 65, "ssl/ssl_lib.c", 861);
return 0xFFFFFFFFLL;
}
}
else
{
ERR_put_error(20, 395, 204, "ssl/ssl_lib.c", 851);
return 0xFFFFFFFFLL;
}
}
else
{
ERR_put_error(20, 395, 204, "ssl/ssl_lib.c", 844);
return 0xFFFFFFFFLL;
}
}
else
{
ERR_put_error(20, 395, 167, "ssl/ssl_lib.c", 829);
return v5;
}
return result;
}