// // OCSP_request_verify from 0xdc5a2c to 0xdc5ca8 (636 bytes) // // 1 xrefs: // > @ 0x6ba48 // // 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_request_verify(__int64 a1, __int64 a2, __int64 a3, __int16 a4) { __int64 v8; // x20 __int64 v9; // x5 __int64 v10; // x4 __int64 v11; // x19 __int64 v13; // x25 int v14; // w5 int error; // w21 __int64 v16; // x0 __int64 v17; // x0 v8 = X509_STORE_CTX_new(); if ( v8 ) { v9 = *(_QWORD *)(a1 + 32); if ( v9 ) { v10 = *(_QWORD *)(a1 + 8); if ( v10 && *(_DWORD *)v10 == 4 ) { v13 = *(_QWORD *)(v10 + 8); if ( (a4 & 2) != 0 || (v11 = X509_find_by_subject(*(_QWORD *)(v9 + 24), *(_QWORD *)(v10 + 8))) == 0 ) { v11 = X509_find_by_subject(a2, v13); if ( !v11 ) { ERR_put_error(39, 116, 118, (__int64)"crypto/ocsp/ocsp_vfy.c", 356); goto LABEL_6; } if ( (a4 & 0x200) != 0 ) LOBYTE(a4) = a4 | 0x10; } if ( (a4 & 4) != 0 || (v17 = X509_get0_pubkey(v11), (int)ASN1_item_verify( OCSP_REQINFO_it, *(_QWORD *)(a1 + 32), *(_QWORD *)(*(_QWORD *)(a1 + 32) + 16LL), a1, v17) > 0) ) { if ( (a4 & 0x10) != 0 ) goto LABEL_16; if ( (a4 & 8) != 0 ) v14 = X509_STORE_CTX_init(v8, a3, v11, a4 & 0x10); else v14 = X509_STORE_CTX_init(v8, a3, v11, *(_QWORD *)(*(_QWORD *)(a1 + 32) + 24LL)); if ( !v14 ) { LODWORD(v11) = 0; ERR_put_error(39, 116, 11, (__int64)"crypto/ocsp/ocsp_vfy.c", 378); goto LABEL_6; } X509_STORE_CTX_set_purpose(v8, 8); X509_STORE_CTX_set_trust(v8, 7); if ( (int)X509_verify_cert(v8) > 0 ) { LABEL_16: LODWORD(v11) = 1; } else { LODWORD(v11) = 0; error = X509_STORE_CTX_get_error(v8); ERR_put_error(39, 116, 101, (__int64)"crypto/ocsp/ocsp_vfy.c", 388); v16 = X509_verify_cert_error_string(error); ERR_add_error_data(2, "Verify error:", v16); } } else { LODWORD(v11) = 0; ERR_put_error(39, 116, 117, (__int64)"crypto/ocsp/ocsp_vfy.c", 366); } } else { LODWORD(v11) = 0; ERR_put_error(39, 116, 129, (__int64)"crypto/ocsp/ocsp_vfy.c", 349); } } else { LODWORD(v11) = 0; ERR_put_error(39, 116, 128, (__int64)"crypto/ocsp/ocsp_vfy.c", 343); } } else { LODWORD(v11) = 0; ERR_put_error(39, 116, 65, (__int64)"crypto/ocsp/ocsp_vfy.c", 338); } LABEL_6: X509_STORE_CTX_free(v8); return (unsigned int)v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source