summaryrefslogtreecommitdiffstats
path: root/tdeioslave/sftp/tdeio_sftp.h
diff options
context:
space:
mode:
authorAlexander Golubev <[email protected]>2024-01-21 13:26:40 +0300
committerMichele Calgaro <[email protected]>2024-03-04 23:34:43 +0900
commite38959560668bb1111dc70b4be938f4f4c78e036 (patch)
treec2ddcfef0103ddfa09709bd1717a7c74dde10d5e /tdeioslave/sftp/tdeio_sftp.h
parent9a9f857054db2df1db4497c741edbdbbc864eca5 (diff)
downloadtdebase-e38959560668bb1111dc70b4be938f4f4c78e036.tar.gz
tdebase-e38959560668bb1111dc70b4be938f4f4c78e036.zip
tdeioslave/sftp: split off connection init to a dedicated function
Signed-off-by: Alexander Golubev <[email protected]> (cherry picked from commit 75349be43e1b4ced52502f98316148a7b55c1352)
Diffstat (limited to 'tdeioslave/sftp/tdeio_sftp.h')
-rw-r--r--tdeioslave/sftp/tdeio_sftp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tdeioslave/sftp/tdeio_sftp.h b/tdeioslave/sftp/tdeio_sftp.h
index 2ad069ea7..68c8a0020 100644
--- a/tdeioslave/sftp/tdeio_sftp.h
+++ b/tdeioslave/sftp/tdeio_sftp.h
@@ -158,6 +158,9 @@ private: // private methods
/** A small helper function to construct auth info skeleton for the protocol */
TDEIO::AuthInfo authInfo();
+ /** A helper function encapsulating creation of an ssh connection before authentication */
+ int initializeConnection();
+
void reportError(const KURL &url, const int err);
bool createUDSEntry(const TQString &filename, const TQByteArray &path,