From 61d172dae4cb0e89201ddccde5db2d328955f653 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sun, 7 Jan 2024 12:20:36 +0100 Subject: [PATCH] Android: native: adapt to libsshtunnel v0.3.0 --- android/app/src/main/cpp/vncconn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/cpp/vncconn.c b/android/app/src/main/cpp/vncconn.c index 670b8684..bd2b6037 100644 --- a/android/app/src/main/cpp/vncconn.c +++ b/android/app/src/main/cpp/vncconn.c @@ -486,10 +486,10 @@ JNIEXPORT jboolean JNICALL Java_com_coboltforge_dontmind_multivnc_VNCConn_rfbIni // ssh-tunneling, check whether it's password- or key-based if(cSshPassword) { // password-based - tunnel = ssh_tunnel_open_with_password(cSshHost, cSshUser, cSshPassword, cHost, port, cl, onSshFingerprintCheck, onSshError); + tunnel = ssh_tunnel_open_with_password(cSshHost, 22, cSshUser, cSshPassword, cHost, port, cl, onSshFingerprintCheck, onSshError); } else { // key-based - tunnel = ssh_tunnel_open_with_privkey(cSshHost, cSshUser, (char*)cSshPrivKey, cSshPrivKeyLen, cSshPrivKeyPassword, cHost, port, cl, onSshFingerprintCheck, onSshError); + tunnel = ssh_tunnel_open_with_privkey(cSshHost, 22, cSshUser, (char*)cSshPrivKey, cSshPrivKeyLen, cSshPrivKeyPassword, cHost, port, cl, onSshFingerprintCheck, onSshError); } cl->serverHost = strdup("127.0.0.1");