//
// SSL_CTX_use_psk_identity_hint from 0xd42770 to 0xd42854 (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x66870
//
// 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_CTX_use_psk_identity_hint(__int64 a1, char *a2)
{
__int64 v4; // x22
__int64 v5; // x0
__int64 v6; // x1
if ( a2 )
{
if ( strlen(a2) > 0x80 )
{
ERR_put_error(20, 272, 146, "ssl/ssl_lib.c", 3586);
return 0;
}
else
{
CRYPTO_free(*(_QWORD *)(*(_QWORD *)(a1 + 288) + 464LL), "ssl/ssl_lib.c", 3589);
v4 = *(_QWORD *)(a1 + 288);
v5 = CRYPTO_strdup(a2, "ssl/ssl_lib.c", 3591);
v6 = *(_QWORD *)(a1 + 288);
*(_QWORD *)(v4 + 464) = v5;
return *(_QWORD *)(v6 + 464) != 0;
}
}
else
{
CRYPTO_free(*(_QWORD *)(*(_QWORD *)(a1 + 288) + 464LL), "ssl/ssl_lib.c", 3589);
*(_QWORD *)(*(_QWORD *)(a1 + 288) + 464LL) = 0;
return 1;
}
}