// // X509_get_pubkey_parameters from 0x843cc8 to 0x843dd4 (268 bytes) // // 5 xrefs: // > sub_843DE0 @ 0x8440bc // > sub_843DE0 @ 0x844b34 // > X509_verify_cert @ 0x8451fc // > X509_verify_cert @ 0x845290 // > @ 0x6758c // // 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 X509_get_pubkey_parameters(_DWORD *a1, _DWORD *a2) { signed int v4; // r4 int *v5; // r6 int v6; // r0 int v7; // r0 signed int v8; // r4 int v9; // r0 _DWORD *v10; // r0 if ( !a1 || EVP_PKEY_missing_parameters((int)a1) ) { v4 = 0; v5 = nullptr; while ( v4 < OPENSSL_sk_num((int)a2) ) { v6 = OPENSSL_sk_value(a2, v4); v7 = X509_get0_pubkey(v6); v5 = (int *)v7; if ( !v7 ) { ERR_put_error(11, 110, 108, (int)"crypto/x509/x509_vfy.c", 1912); return 0; } if ( !EVP_PKEY_missing_parameters(v7) ) goto LABEL_9; ++v4; } if ( !v5 ) { ERR_put_error(11, 110, 107, (int)"crypto/x509/x509_vfy.c", 1920); return 0; } LABEL_9: v8 = v4 - 1; if ( v8 >= 0 ) { do { v9 = OPENSSL_sk_value(a2, v8); v10 = (_DWORD *)X509_get0_pubkey(v9); --v8; EVP_PKEY_copy_parameters(v10, v5); } while ( v8 != -1 ); } if ( a1 ) EVP_PKEY_copy_parameters(a1, v5); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source