From 75349be43e1b4ced52502f98316148a7b55c1352 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 21 Jan 2024 13:26:40 +0300 Subject: tdeioslave/sftp: split off connection init to a dedicated function Signed-off-by: Alexander Golubev --- tdeioslave/sftp/tdeio_sftp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tdeioslave/sftp/tdeio_sftp.h') 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, -- cgit v1.2.1