// // X509_load_cert_crl_file from 0xa51a6c to 0xa51b88 (284 bytes) // // 3 xrefs: // > sub_A51B98 @ 0xa51be4 // > sub_A51B98 @ 0xa51c14 // > @ 0x8057c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:08:23 +0000 // int __fastcall X509_load_cert_crl_file(int a1, const char *a2, int a3) { _DWORD *v5; // r0 _DWORD *v6; // r5 _DWORD *bio; // r7 int v8; // r5 signed int v9; // r4 int v10; // r0 unsigned int v11; // r1 _DWORD *v12; // r6 if ( a3 != 1 ) return X509_load_cert_file(a1, (int)a2, a3); v5 = BIO_new_file(a2, "r"); v6 = v5; if ( v5 ) { bio = (_DWORD *)PEM_X509_INFO_read_bio(v5, 0, 0, 0); BIO_free(v6); if ( bio ) { v8 = 0; v9 = 0; while ( 1 ) { v10 = OPENSSL_sk_num((int)bio); v11 = v9; if ( v9 >= v10 ) break; ++v9; v12 = (_DWORD *)OPENSSL_sk_value(bio, v11); if ( *v12 ) { X509_STORE_add_cert(*(_DWORD *)(a1 + 16), *v12); ++v8; } if ( v12[1] ) { X509_STORE_add_crl(*(_DWORD *)(a1 + 16), v12[1]); ++v8; } } OPENSSL_sk_pop_free((int)bio, (void (__fastcall *)(int))X509_INFO_free); return v8; } else { ERR_put_error(11, 132, 9, (int)"crypto/x509/by_file.c", 205); return 0; } } else { ERR_put_error(11, 132, 2, (int)"crypto/x509/by_file.c", 199); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source