// // OCSP_request_verify from 0x81ff78 to 0x8201e8 (624 bytes) // // 1 xrefs: // > @ 0x64dbc // // 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_request_verify(int a1, int a2, int a3, __int16 a4) { int v8; // r6 int v9; // r12 _DWORD *v10; // lr int v11; // r4 int v13; // r10 int v14; // r1 int v15; // r3 int error; // r4 int v17; // r0 int v18; // r0 v8 = X509_STORE_CTX_new(); if ( v8 ) { v9 = *(_DWORD *)(a1 + 16); if ( v9 ) { v10 = *(_DWORD **)(a1 + 4); if ( v10 && *v10 == 4 ) { v13 = v10[1]; if ( (a4 & 2) != 0 || (v11 = X509_find_by_subject(*(_DWORD *)(v9 + 12), v10[1])) == 0 ) { v11 = X509_find_by_subject(a2, v13); if ( !v11 ) { ERR_put_error(39, 116, 118, (int)"crypto/ocsp/ocsp_vfy.c", 356); goto LABEL_6; } if ( (a4 & 0x200) != 0 ) LOBYTE(a4) = a4 | 0x10; } if ( (a4 & 4) != 0 || (v18 = X509_get0_pubkey(v11), ASN1_item_verify(OCSP_REQINFO_it, *(_DWORD *)(a1 + 16), *(_DWORD *)(*(_DWORD *)(a1 + 16) + 8), a1, v18) > 0) ) { v15 = a4 & 0x10; if ( (a4 & 0x10) != 0 ) goto LABEL_18; if ( (a4 & 8) != 0 ) v14 = a3; else v15 = *(_DWORD *)(a1 + 16); if ( (a4 & 8) == 0 ) { v14 = a3; v15 = *(_DWORD *)(v15 + 12); } if ( !X509_STORE_CTX_init(v8, v14, v11, v15) ) { v11 = 0; ERR_put_error(39, 116, 11, (int)"crypto/ocsp/ocsp_vfy.c", 378); goto LABEL_6; } X509_STORE_CTX_set_purpose(v8, 8); X509_STORE_CTX_set_trust(v8, 7); if ( X509_verify_cert(v8) > 0 ) { LABEL_18: v11 = 1; } else { error = X509_STORE_CTX_get_error(v8); ERR_put_error(39, 116, 101, (int)"crypto/ocsp/ocsp_vfy.c", 388); v17 = X509_verify_cert_error_string(error); v11 = 0; ERR_add_error_data(2, "Verify error:", v17); } } else { v11 = a4 & 4; ERR_put_error(39, 116, 117, (int)"crypto/ocsp/ocsp_vfy.c", 366); } } else { ERR_put_error(39, 116, 129, (int)"crypto/ocsp/ocsp_vfy.c", 349); v11 = 0; } } else { v11 = 0; ERR_put_error(39, 116, 128, (int)"crypto/ocsp/ocsp_vfy.c", 343); } } else { ERR_put_error(39, 116, 65, (int)"crypto/ocsp/ocsp_vfy.c", 338); v11 = 0; } LABEL_6: X509_STORE_CTX_free(v8); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source