// // SSL_CTX_use_RSAPrivateKey_file from 0xd44f6c to 0xd450e8 (380 bytes) // // 1 xrefs: // > @ 0x76e00 // // 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 // __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