//
// OCSP_check_nonce from 0x10423b4 to 0x104247c (200 bytes)
//
// 1 xrefs:
// > ??> @ 0xd1218
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:31 +0000
//
__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;
}