//
// OCSP_check_nonce from 0x81e48c to 0x81e558 (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x64bbc
//
// 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 OCSP_check_nonce(int a1, int a2)
{
int ext_by_NID; // r4
int v5; // r0
unsigned int v7; // r3
unsigned int v8; // r2
int ext; // r4
int v10; // r5
int data; // r4
int v12; // r0
ext_by_NID = OCSP_REQUEST_get_ext_by_NID(a1);
v5 = OCSP_BASICRESP_get_ext_by_NID(a2);
if ( (((unsigned int)v5 >> 31) & ((unsigned int)ext_by_NID >> 31)) != 0 )
return 2;
if ( ext_by_NID >= 0 )
v7 = (unsigned int)v5 >> 31;
else
v7 = 0;
if ( v7 )
return -1;
if ( v5 >= 0 )
v8 = (unsigned int)ext_by_NID >> 31;
else
v8 = 0;
if ( v8 )
return 3;
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 ASN1_OCTET_STRING_cmp(data, v12) == 0;
}