diff options
author | Kang Lin <kl222@126.com> | 2024-07-30 12:53:52 +0800 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-08-30 12:24:17 +0200 |
commit | 1b0387a36cf5f22a34b955d9c3f7ff0860e7467c (patch) | |
tree | c9bd6d1faa6bec8bd9b1fb6e4315de7489ca61d9 /common/rfb/CSecurityMSLogonII.cxx | |
parent | 9df4f39c77aa66da992c7632d4ad5847e63d9f16 (diff) | |
download | tigervnc-1b0387a36cf5f22a34b955d9c3f7ff0860e7467c.tar.gz tigervnc-1b0387a36cf5f22a34b955d9c3f7ff0860e7467c.zip |
Move getUserPasswd()/showMsgBox() to CConnection
Problems with the original code: A process can only establish one connection.
After modification, multiple connections can be supported.
Diffstat (limited to 'common/rfb/CSecurityMSLogonII.cxx')
-rw-r--r-- | common/rfb/CSecurityMSLogonII.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/CSecurityMSLogonII.cxx b/common/rfb/CSecurityMSLogonII.cxx index dc817518..f8ff36c1 100644 --- a/common/rfb/CSecurityMSLogonII.cxx +++ b/common/rfb/CSecurityMSLogonII.cxx @@ -97,7 +97,7 @@ void CSecurityMSLogonII::writeCredentials() std::string password; rdr::RandomStream rs; - (CSecurity::upg)->getUserPasswd(isSecure(), &username, &password); + cc->getUserPasswd(isSecure(), &username, &password); std::vector<uint8_t> bBytes(8); if (!rs.hasData(8)) |