// // SSL_CTX_use_PrivateKey from 0x9b1358 to 0x9b14c4 (364 bytes) // // 5 xrefs: // > sub_8539B8 @ 0x854634 // > sub_8539B8 @ 0x85483e // > SSL_CTX_use_PrivateKey_file @ 0x9b157c // > SSL_CTX_use_PrivateKey_ASN1 @ 0x9b1668 // > @ 0x6830c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:06:57 +0000 // int __fastcall SSL_CTX_use_PrivateKey(int a1, int a2) { _DWORD *v3; // r6 int v4; // r0 int v5; // r7 int v6; // r4 int v7; // r0 int v8; // r0 int v9; // r9 int v10; // r0 _DWORD *v11; // r7 int v13; // r0 if ( a2 ) { v3 = *(_DWORD **)(a1 + 176); v4 = ssl_cert_type(0, a2); v5 = v4; if ( v4 < 0 ) { ERR_put_error(20, 193, 247, "ssl/ssl_rsa.c", 126); return 0; } v6 = 4 * v4; v7 = v3[5 * v4 + 5]; if ( !v7 ) goto LABEL_7; v8 = X509_get0_pubkey(v7); v9 = v8; if ( !v8 ) { ERR_put_error(20, 193, 65, "ssl/ssl_rsa.c", 134); return v9; } if ( (v10 = EVP_PKEY_copy_parameters(v8, a2), ERR_clear_error(v10), EVP_PKEY_id(a2) == 6) && (v13 = EVP_PKEY_get0_RSA(a2), (RSA_flags(v13) & 1) != 0) || X509_check_private_key(v3[5 * v5 + 5], a2) ) { LABEL_7: v11 = &v3[5 * v5]; EVP_PKEY_free(v11[6]); v9 = 1; EVP_PKEY_up_ref(a2); v11[6] = a2; *v3 = v11 + 5; return v9; } X509_free(v3[v6 + 5 + v5]); v3[v6 + 5 + v5] = 0; return 0; } else { ERR_put_error(20, 174, 67, "ssl/ssl_rsa.c", 517); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source