// // OCSP_check_validity from 0x1041e34 to 0x1041ffc (456 bytes) // // 2 xrefs: // > sub_E2C94C @ 0xe2d8e0 // > @ 0x8a8f8 // // 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_validity(__int64 a1, const void **a2, __int64 a3, __int64 a4) { unsigned int v8; // w19 time_t timer; // [xsp+40h] [xbp+40h] BYREF time_t v11; // [xsp+48h] [xbp+48h] BYREF time(&timer); v8 = ASN1_GENERALIZEDTIME_check(a1); if ( v8 ) { v8 = 1; v11 = timer + a3; if ( (int)X509_cmp_time(a1, &v11) > 0 ) { v8 = 0; ERR_put_error(39, 115, 126, (__int64)"crypto/ocsp/ocsp_cl.c", 320); } if ( (a4 & 0x8000000000000000LL) == 0 ) { v11 = timer - a4; if ( (X509_cmp_time(a1, &v11) & 0x80000000) != 0 ) { v8 = 0; ERR_put_error(39, 115, 127, (__int64)"crypto/ocsp/ocsp_cl.c", 331); } } } else { ERR_put_error(39, 115, 123, (__int64)"crypto/ocsp/ocsp_cl.c", 315); } if ( !a2 ) return v8; if ( (unsigned int)ASN1_GENERALIZEDTIME_check(a2) ) { v11 = timer - a3; if ( (X509_cmp_time(a2, &v11) & 0x80000000) != 0 ) { v8 = 0; ERR_put_error(39, 115, 125, (__int64)"crypto/ocsp/ocsp_cl.c", 347); } if ( (ASN1_STRING_cmp(a2, a1) & 0x80000000) == 0 ) return v8; } else { v8 = 0; ERR_put_error(39, 115, 122, (__int64)"crypto/ocsp/ocsp_cl.c", 342); if ( (ASN1_STRING_cmp(a2, a1) & 0x80000000) == 0 ) return v8; } ERR_put_error(39, 115, 124, (__int64)"crypto/ocsp/ocsp_cl.c", 355); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source