// // X509_load_cert_crl_file from 0x106302c to 0x106317c (336 bytes) // // 3 xrefs: // > sub_106317C @ 0x10631e0 // > sub_106317C @ 0x1063214 // > @ 0x96088 // // 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:51 +0000 // __int64 __fastcall X509_load_cert_crl_file(__int64 a1, const char *a2, int a3) { __int64 v5; // x0 _QWORD *v6; // x21 unsigned int v7; // w20 int v8; // w19 unsigned int *bio; // x22 bool v10; // cc int v11; // w1 int *v12; // x0 _QWORD *v13; // x21 __int64 v14; // x1 if ( a3 != 1 ) return X509_load_cert_file(a1, (__int64)a2, a3); v5 = BIO_new_file(a2, "r"); v6 = (_QWORD *)v5; if ( v5 ) { v7 = 0; v8 = 0; bio = (unsigned int *)PEM_X509_INFO_read_bio(v5, 0, 0, 0); BIO_free(v6); if ( bio ) { while ( 1 ) { v10 = v8 < (int)OPENSSL_sk_num(bio); v11 = v8; v12 = (int *)bio; ++v8; if ( !v10 ) break; while ( 1 ) { v13 = (_QWORD *)OPENSSL_sk_value((__int64)v12, v11); if ( *v13 ) { ++v7; X509_STORE_add_cert(*(_QWORD *)(a1 + 24), *v13); } v14 = v13[1]; if ( !v14 ) break; ++v7; X509_STORE_add_crl(*(_QWORD *)(a1 + 24), v14); v10 = v8 < (int)OPENSSL_sk_num(bio); v11 = v8; v12 = (int *)bio; ++v8; if ( !v10 ) goto LABEL_11; } } LABEL_11: OPENSSL_sk_pop_free(v12, (void (__fastcall *)(__int64))X509_INFO_free); return v7; } else { ERR_put_error(11, 132, 9, (__int64)"crypto/x509/by_file.c", 205); return 0; } } else { ERR_put_error(11, 132, 2, (__int64)"crypto/x509/by_file.c", 199); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source