]> source.dussan.org Git - tigervnc.git/commitdiff
Correctly handling rejecting server key
authorPierre Ossman <ossman@cendio.se>
Tue, 3 Sep 2024 06:03:41 +0000 (08:03 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 4 Sep 2024 09:27:56 +0000 (11:27 +0200)
This is the user actively rejecting the connection, and should be
signalled as such for correct behaviour.

common/rfb/CSecurityRSAAES.cxx

index cc031fe3cadddc80ad9d3347985a9731e5c36c50..4baeb235c21dfa582fccc577a3c08466db7ae142 100644 (file)
@@ -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()