From 7f277bc5e1504110b80bdef6da99d21ba4ea2a8c Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Fri, 24 Jun 2022 14:28:04 +0300 Subject: SFTP: Various fixes and improvements For details see PR #279. Portions of code borrowed from KDE5 SFTP ioslave: Source: https://invent.kde.org/network/kio-extras/-/blob/master/sftp/kio_sftp.cpp Licence: LGPLv2 or later Signed-off-by: Mavridis Philippe --- tdeioslave/sftp/tdeio_sftp.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tdeioslave/sftp/tdeio_sftp.h') diff --git a/tdeioslave/sftp/tdeio_sftp.h b/tdeioslave/sftp/tdeio_sftp.h index 88ddaecf1..82bbc7a43 100644 --- a/tdeioslave/sftp/tdeio_sftp.h +++ b/tdeioslave/sftp/tdeio_sftp.h @@ -70,12 +70,13 @@ public: // libssh authentication callback (note that this is called by the // global ::auth_callback() call. int auth_callback(const char *prompt, char *buf, size_t len, - int echo, int verify, void *userdata); + int echo, int verify, void *userdata); // libssh logging callback (note that this is called by the // global ::log_callback() call. void log_callback(ssh_session session, int priority, const char *message, - void *userdata); + void *userdata); + private: // Private variables void statMime(const KURL &url); @@ -119,9 +120,12 @@ private: // Private variables // TQString text; //}; + TDEIO::AuthInfo *pubKeyInfo; + private: // private methods int authenticateKeyboardInteractive(TDEIO::AuthInfo &info); + void clearPubKeyAuthInfo(); void reportError(const KURL &url, const int err); -- cgit v1.2.1