Add option to use both Pageant and OpenSSH agent on Windows

This commit is contained in:
Hongmou Zhang 2021-04-03 17:23:09 +02:00 committed by Jonathan White
parent 250cd1933c
commit d2c74340a3
6 changed files with 44 additions and 6 deletions

View file

@ -41,7 +41,9 @@ public:
void setAuthSockOverride(QString& authSockOverride);
#ifdef Q_OS_WIN
bool useOpenSSH() const;
bool usePageant() const;
void setUseOpenSSH(bool useOpenSSH);
void setUsePageant(bool usePageant);
#endif
const QString errorString() const;
@ -74,6 +76,7 @@ private:
const quint8 SSH_AGENT_CONSTRAIN_CONFIRM = 2;
bool sendMessage(const QByteArray& in, QByteArray& out);
bool sendMessageOpenSSH(const QByteArray& in, QByteArray& out);
#ifdef Q_OS_WIN
bool sendMessagePageant(const QByteArray& in, QByteArray& out);