// // SSL_add_file_cert_subjects_to_stack from 0x791e94 to 0x791fc4 (304 bytes) // // 3 xrefs: // > SSL_add_dir_cert_subjects_to_stack @ 0x792050 // > sub_7BB418 @ 0x7bb43c // > @ 0x5b44c // // 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_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_790AD0); 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