//
// SSL_CTX_dane_enable from 0xfbcdf0 to 0xfbcef4 (260 bytes)
//
// 1 xrefs:
// > ??> @ 0xffcb8
//
// 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:18 +0000
//
__int64 __fastcall SSL_CTX_dane_enable(__int64 a1)
{
unsigned int v1; // w20
__int64 v4; // x21
__int64 v5; // x0
__int64 v6; // x22
__int64 v7; // x0
__int64 digestbyname; // x0
__int64 v9; // x0
__int64 v10; // x0
v1 = 1;
if ( !*(_QWORD *)(a1 + 776) )
{
v4 = CRYPTO_zalloc(24, "ssl/ssl_lib.c", 120);
v5 = CRYPTO_zalloc(3, "ssl/ssl_lib.c", 121);
v6 = v5;
if ( v4 && v5 )
{
v7 = OBJ_nid2sn(672);
digestbyname = EVP_get_digestbyname(v7);
if ( digestbyname )
{
*(_QWORD *)(v4 + 8) = digestbyname;
*(_BYTE *)(v6 + 1) = 1;
}
v9 = OBJ_nid2sn(674);
v10 = EVP_get_digestbyname(v9);
if ( v10 )
{
*(_QWORD *)(v4 + 16) = v10;
*(_BYTE *)(v6 + 2) = 2;
}
*(_QWORD *)(a1 + 776) = v4;
v1 = 1;
*(_QWORD *)(a1 + 784) = v6;
*(_BYTE *)(a1 + 792) = 2;
}
else
{
v1 = 0;
CRYPTO_free(v5, "ssl/ssl_lib.c", 124);
CRYPTO_free(v4, "ssl/ssl_lib.c", 125);
ERR_put_error(20, 347, 65, "ssl/ssl_lib.c", 126);
}
}
return v1;
}