//
// SSL_use_psk_identity_hint from 0xd42854 to 0xd4293c (232 bytes)
//
// 1 xrefs:
// > ??> @ 0xc7590
//
// 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
//
bool __fastcall SSL_use_psk_identity_hint(__int64 a1, char *a2)
{
__int64 v4; // x22
__int64 v5; // x0
__int64 v6; // x1
if ( !a1 )
return 0;
if ( a2 )
{
if ( strlen(a2) <= 0x80 )
{
CRYPTO_free(*(_QWORD *)(*(_QWORD *)(a1 + 328) + 464LL), "ssl/ssl_lib.c", 3608);
v4 = *(_QWORD *)(a1 + 328);
v5 = CRYPTO_strdup(a2, "ssl/ssl_lib.c", 3610);
v6 = *(_QWORD *)(a1 + 328);
*(_QWORD *)(v4 + 464) = v5;
return *(_QWORD *)(v6 + 464) != 0;
}
ERR_put_error(20, 273, 146, "ssl/ssl_lib.c", 3605);
return 0;
}
CRYPTO_free(*(_QWORD *)(*(_QWORD *)(a1 + 328) + 464LL), "ssl/ssl_lib.c", 3608);
*(_QWORD *)(*(_QWORD *)(a1 + 328) + 464LL) = a2;
return 1;
}