//
// X509_check_private_key from 0x83eb94 to 0x83ec54 (192 bytes)
//
// 10 xrefs:
// > SSL_CTX_check_private_key @ 0x796d54
// > SSL_check_private_key @ 0x796dec
// > sub_79B558 @ 0x79b5e0
// > sub_79B6F4 @ 0x79b768
// > SSL_use_PrivateKey @ 0x79bf04
// > SSL_CTX_use_PrivateKey @ 0x79c7d0
// > OCSP_request_sign @ 0x81db9c
// > PKCS12_parse @ 0x824ebc
// > CMS_add1_signer @ 0x877f80
// > ??> @ 0x5bc3c
//
// 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 X509_check_private_key(int a1, _DWORD *a2)
{
_DWORD *v3; // r0
int v4; // r0
v3 = (_DWORD *)X509_get0_pubkey(a1);
if ( !v3 )
{
LABEL_8:
ERR_put_error(11, 128, 117, (int)"crypto/x509/x509_cmp.c", 301);
return 0;
}
v4 = EVP_PKEY_cmp(v3, a2);
if ( v4 != -1 )
{
if ( !v4 )
{
ERR_put_error(11, 128, 116, (int)"crypto/x509/x509_cmp.c", 295);
return 0;
}
if ( v4 != -2 )
return v4 > 0;
goto LABEL_8;
}
ERR_put_error(11, 128, 115, (int)"crypto/x509/x509_cmp.c", 298);
return 0;
}