// // SSL_CTX_use_certificate_file from 0xfc2ff4 to 0xfc314c (344 bytes) // // 2 xrefs: // > sub_E2DA90 @ 0xe2e424 // > @ 0xe04d0 // // 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:15:22 +0000 // __int64 __fastcall SSL_CTX_use_certificate_file(__int64 a1, __int64 a2, int a3) { __int64 v6; // x0 __int64 v7; // x0 __int64 v8; // x19 __int64 bio_X509; // x20 unsigned int v10; // w21 __int64 v12; // x2 v6 = BIO_s_file(); v7 = BIO_new(v6); v8 = v7; if ( !v7 ) { bio_X509 = 0; v10 = 0; ERR_put_error(20, 173, 7, "ssl/ssl_rsa.c", 381); goto LABEL_6; } if ( (int)BIO_ctrl(v7, 108, 3, a2) <= 0 ) { bio_X509 = 0; ERR_put_error(20, 173, 2, "ssl/ssl_rsa.c", 386); v10 = 0; goto LABEL_6; } if ( a3 == 2 ) { bio_X509 = d2i_X509_bio(v8, 0); v12 = 13; } else { if ( a3 != 1 ) { bio_X509 = 0; v10 = 0; ERR_put_error(20, 173, 124, "ssl/ssl_rsa.c", 397); goto LABEL_6; } bio_X509 = PEM_read_bio_X509(v8, 0, *(_QWORD *)(a1 + 168), *(_QWORD *)(a1 + 176)); v12 = 9; } if ( bio_X509 ) { v10 = SSL_CTX_use_certificate(a1, bio_X509); } else { v10 = 0; ERR_put_error(20, 173, v12, "ssl/ssl_rsa.c", 402); } LABEL_6: X509_free(bio_X509); BIO_free(v8); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source