summaryrefslogtreecommitdiffstats
path: root/tdeioslave/sftp/tdeio_sftp.h
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-02-17 15:59:48 +0300
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2024-03-04 11:04:11 +0000
commit5b9585e42977f46639dc3784352e9c4be4cd9cac (patch)
treeb4bcf97086f7a18ce91cd8fdef5c94992f8dacd9 /tdeioslave/sftp/tdeio_sftp.h
parent1597d5f3848cdb39b7d458f0c6c33ecdfc3125d5 (diff)
downloadtdebase-5b9585e42977f46639dc3784352e9c4be4cd9cac.tar.gz
tdebase-5b9585e42977f46639dc3784352e9c4be4cd9cac.zip
tdeioslave/sftp: use unsigned to store auth method flags/bitsets
The libssh defines those flags as unsigned. Technically ssh_auth_list() still returns int, but its guranteed to be bitset of those flags. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'tdeioslave/sftp/tdeio_sftp.h')
-rw-r--r--tdeioslave/sftp/tdeio_sftp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tdeioslave/sftp/tdeio_sftp.h b/tdeioslave/sftp/tdeio_sftp.h
index 303014ead..75b295cfd 100644
--- a/tdeioslave/sftp/tdeio_sftp.h
+++ b/tdeioslave/sftp/tdeio_sftp.h
@@ -199,7 +199,7 @@ private: // private methods
class SSHAuthMethod {
public:
/** libssh's flag for he method */
- virtual int flag() = 0;
+ virtual unsigned flag() = 0;
/** The user-friendly (probably translated) name of the method */
virtual TQString name() {return flagToStr(flag());}
/** Actually do perform the auth process */
@@ -210,10 +210,10 @@ public:
virtual ~SSHAuthMethod() {};
/** Returns a name for the given libssh auth method flag */
- static TQString flagToStr(int method);
+ static TQString flagToStr(unsigned method);
/** Returns a list of names for all the methods set in the given libssh auth method bitset */
- static TQStringList bitsetToStr(int method);
+ static TQStringList bitsetToStr(unsigned method);
};
#endif