//
// SSL_CTX_check_private_key from 0x796d1c to 0x796da8 (140 bytes)
//
// 3 xrefs:
// > sub_643938 @ 0x6442cc
// > sub_643938 @ 0x6447e4
// > ??> @ 0x5537c
//
// 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
//
int __fastcall SSL_CTX_check_private_key(int a1)
{
_DWORD *v1; // r3
if ( a1 && (v1 = **(_DWORD ***)(a1 + 176), *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;
}