// // X509_load_cert_crl_file from 0x83ce6c to 0x83cf88 (284 bytes) // // 3 xrefs: // > sub_83CF98 @ 0x83cfe4 // > sub_83CF98 @ 0x83d014 // > @ 0x66afc // // 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_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