// // SSL_CTX_use_RSAPrivateKey_file from 0xfc32c0 to 0xfc343c (380 bytes) // // 1 xrefs: // > @ 0x9f358 // // 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_RSAPrivateKey_file(__int64 a1, __int64 a2, int a3) { __int64 v6; // x0 __int64 v7; // x0 __int64 v8; // x19 __int64 bio_RSAPrivateKey; // x21 __int64 v11; // x2 unsigned int v12; // w20 v6 = BIO_s_file(); v7 = BIO_new(v6); v8 = v7; if ( v7 ) { if ( (int)BIO_ctrl(v7, 108, 3, a2) <= 0 ) { ERR_put_error(20, 179, 2, "ssl/ssl_rsa.c", 469); goto LABEL_6; } if ( a3 == 2 ) { bio_RSAPrivateKey = d2i_RSAPrivateKey_bio(v8, 0); v11 = 13; } else { if ( a3 != 1 ) { ERR_put_error(20, 179, 124, "ssl/ssl_rsa.c", 481); LABEL_6: BIO_free(v8); return 0; } bio_RSAPrivateKey = PEM_read_bio_RSAPrivateKey(v8, 0, *(_QWORD *)(a1 + 168), *(_QWORD *)(a1 + 176)); v11 = 9; } if ( !bio_RSAPrivateKey ) { ERR_put_error(20, 179, v11, "ssl/ssl_rsa.c", 485); goto LABEL_6; } v12 = SSL_CTX_use_RSAPrivateKey(a1, bio_RSAPrivateKey); RSA_free(bio_RSAPrivateKey); BIO_free(v8); return v12; } else { ERR_put_error(20, 179, 7, "ssl/ssl_rsa.c", 464); BIO_free(0); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source