// // SSL_load_client_CA_file from 0x791cb4 to 0x791e7c (456 bytes) // // 1 xrefs: // > @ 0x5b3dc // // 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 SSL_load_client_CA_file(int a1) { int v2; // r0 int v3; // r4 int v4; // r7 int v5; // r0 bool v6; // zf int v7; // r6 int v8; // r5 int subject_name; // r0 int v11; // r0 int v12; // [sp+Ch] [bp-4h] BYREF v2 = BIO_s_file(); v3 = 0; v12 = 0; v4 = BIO_new(v2); v5 = OPENSSL_LH_new(j_X509_NAME_hash, j_X509_NAME_cmp); v6 = v5 == 0; if ( v5 ) v6 = v4 == 0; v7 = v5; v8 = v6; if ( v6 ) { v8 = 0; ERR_put_error(20, 185, 65, "ssl/ssl_cert.c", 580); LABEL_17: X509_NAME_free(v3); OPENSSL_sk_pop_free(v8, X509_NAME_free); BIO_free(v4); X509_free(v12); OPENSSL_LH_free(v7); return 0; } if ( !BIO_ctrl(v4, 108, 3, a1) ) { v8 = 0; v3 = 0; goto LABEL_17; } v3 = v8; while ( PEM_read_bio_X509(v4, &v12, 0, 0) ) { if ( !v8 ) { v8 = OPENSSL_sk_new_null(); if ( !v8 ) { ERR_put_error(20, 185, 65, "ssl/ssl_cert.c", 593); goto LABEL_17; } } subject_name = X509_get_subject_name(v12); v3 = subject_name; if ( !subject_name ) goto LABEL_17; v3 = X509_NAME_dup(subject_name); if ( !v3 ) goto LABEL_17; if ( OPENSSL_LH_retrieve(v7, v3) ) { X509_NAME_free(v3); v3 = 0; } else { OPENSSL_LH_insert(v7, v3); if ( !OPENSSL_sk_push(v8, v3) ) goto LABEL_17; } } BIO_free(v4); X509_free(v12); v11 = OPENSSL_LH_free(v7); if ( !v8 ) return v8; ERR_clear_error(v11); return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source