//
// SSL_CTX_check_private_key from 0xd3fcf8 to 0xd3fd6c (116 bytes)
//
// 3 xrefs:
// > sub_BB78D0 @ 0xbb85ec
// > sub_BB78D0 @ 0xbb8b7c
// > ??> @ 0x3ab18
//
// 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
//
__int64 __fastcall SSL_CTX_check_private_key(__int64 a1)
{
_QWORD *v1; // x1
if ( a1 && (v1 = **(_QWORD ***)(a1 + 288), *v1) )
{
if ( v1[1] )
return X509_check_private_key();
ERR_put_error(20, 168, 190, "ssl/ssl_lib.c", 1396);
}
else
{
ERR_put_error(20, 168, 177, "ssl/ssl_lib.c", 1392);
}
return 0;
}