// // SSL_add_file_cert_subjects_to_stack from 0x9a6a98 to 0x9a6bc8 (304 bytes) // // 3 xrefs: // > SSL_add_dir_cert_subjects_to_stack @ 0x9a6c54 // > sub_9D001C @ 0x9d0040 // > @ 0x74ecc // // 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:06:51 +0000 // int __fastcall SSL_add_file_cert_subjects_to_stack(int a1, int a2) { int v4; // r9 int v5; // r0 int v6; // r0 int v7; // r6 int subject_name; // r0 int v9; // r4 int v10; // r4 int v12; // [sp+Ch] [bp-8h] BYREF v12 = 0; v4 = OPENSSL_sk_set_cmp_func(a1, sub_9A56D4); v5 = BIO_s_file(); v6 = BIO_new(v5); v7 = v6; if ( v6 ) { if ( BIO_ctrl(v6, 108, 3, a2) ) { while ( PEM_read_bio_X509(v7, &v12, 0, 0) ) { subject_name = X509_get_subject_name(v12); if ( !subject_name ) goto LABEL_10; v9 = X509_NAME_dup(subject_name); if ( !v9 ) goto LABEL_10; if ( OPENSSL_sk_find(a1, v9) < 0 ) { if ( !OPENSSL_sk_push(a1, v9) ) { X509_NAME_free(v9); v10 = 0; goto LABEL_11; } } else { X509_NAME_free(v9); } } ERR_clear_error(0); v10 = 1; } else { LABEL_10: v10 = 0; } } else { ERR_put_error(20, 216, 65, "ssl/ssl_cert.c", 651); v10 = 0; } LABEL_11: BIO_free(v7); X509_free(v12); OPENSSL_sk_set_cmp_func(a1, v4); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source