diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-09-03 08:03:41 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-09-04 11:27:56 +0200 |
commit | 455ad1ce5db4a1d47200ce0eea3584785007e28a (patch) | |
tree | bf73e77b421c0dde324ffbf9e011f7b023a66f7d | |
parent | 1f3e77d75a912b30f554d745a56f5da1e4de966e (diff) | |
download | tigervnc-455ad1ce5db4a1d47200ce0eea3584785007e28a.tar.gz tigervnc-455ad1ce5db4a1d47200ce0eea3584785007e28a.zip |
Correctly handling rejecting server key
This is the user actively rejecting the connection, and should be
signalled as such for correct behaviour.
-rw-r--r-- | common/rfb/CSecurityRSAAES.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/CSecurityRSAAES.cxx b/common/rfb/CSecurityRSAAES.cxx index cc031fe3..4baeb235 100644 --- a/common/rfb/CSecurityRSAAES.cxx +++ b/common/rfb/CSecurityRSAAES.cxx @@ -215,7 +215,7 @@ void CSecurityRSAAES::verifyServer() "Please verify that the information is correct and press \"Yes\". " "Otherwise press \"No\"", f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7]); if (!cc->showMsgBox(MsgBoxFlags::M_YESNO, title, text.c_str())) - throw Exception("server key mismatch"); + throw AuthCancelledException(); } void CSecurityRSAAES::writeRandom() |