// // SSL_CTX_use_PrivateKey_file from 0xd452ec to 0xd45468 (380 bytes) // // 11 xrefs: // > sub_BB78D0 @ 0xbb820c // > sub_BB78D0 @ 0xbb8700 // > sub_D61D58 @ 0xd61d80 // > SSL_CONF_CTX_finish @ 0xd63148 // > SSL_CONF_CTX_finish @ 0xd631a4 // > SSL_CONF_CTX_finish @ 0xd631e8 // > SSL_CONF_CTX_finish @ 0xd6322c // > SSL_CONF_CTX_finish @ 0xd63270 // > SSL_CONF_CTX_finish @ 0xd632b4 // > SSL_CONF_CTX_finish @ 0xd632f8 // > @ 0xbc910 // // 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_PrivateKey_file(__int64 a1, __int64 a2, int a3) { __int64 v6; // x0 __int64 v7; // x0 __int64 v8; // x19 __int64 bio_PrivateKey; // 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, 176, 2, "ssl/ssl_rsa.c", 536); goto LABEL_6; } if ( a3 == 1 ) { bio_PrivateKey = PEM_read_bio_PrivateKey(v8, 0, *(_QWORD *)(a1 + 168), *(_QWORD *)(a1 + 176)); v11 = 9; } else { if ( a3 != 2 ) { ERR_put_error(20, 176, 124, "ssl/ssl_rsa.c", 548); LABEL_6: BIO_free(v8); return 0; } bio_PrivateKey = d2i_PrivateKey_bio(v8, 0); v11 = 13; } if ( !bio_PrivateKey ) { ERR_put_error(20, 176, v11, "ssl/ssl_rsa.c", 552); goto LABEL_6; } v12 = SSL_CTX_use_PrivateKey(a1, bio_PrivateKey); EVP_PKEY_free(bio_PrivateKey); BIO_free(v8); return v12; } else { ERR_put_error(20, 176, 7, "ssl/ssl_rsa.c", 531); BIO_free(0); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source