//
// OCSP_check_nonce from 0xdc4054 to 0xdc411c (200 bytes)
//
// 1 xrefs:
// > ??> @ 0x9ee38
//
// 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 OCSP_check_nonce(__int64 a1, __int64 a2)
{
int ext_by_NID; // w19
int v5; // w0
unsigned int v6; // w3
int v7; // w20
__int64 result; // x0
__int64 ext; // x19
__int64 v10; // x20
__int64 data; // x19
__int64 v12; // x0
ext_by_NID = OCSP_REQUEST_get_ext_by_NID(a1);
v5 = OCSP_BASICRESP_get_ext_by_NID(a2);
v6 = (unsigned int)v5 >> 31;
v7 = v5;
if ( v5 >= 0 || (result = 2, ext_by_NID >= 0) )
{
if ( (ext_by_NID & 0x80000000) == 0 && v6 )
{
return 0xFFFFFFFFLL;
}
else if ( v7 < 0 || (result = 3, ext_by_NID >= 0) )
{
ext = OCSP_REQUEST_get_ext(a1);
v10 = OCSP_BASICRESP_get_ext(a2);
data = X509_EXTENSION_get_data(ext);
v12 = X509_EXTENSION_get_data(v10);
return (unsigned int)ASN1_OCTET_STRING_cmp(data, v12) == 0;
}
}
return result;
}