]> source.dussan.org Git - tigervnc.git/commitdiff
Use better security method description when using VeNCrypt 506/head
authorPierre Ossman <ossman@cendio.se>
Fri, 1 Sep 2017 09:15:57 +0000 (11:15 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 1 Sep 2017 09:15:57 +0000 (11:15 +0200)
The sub-modules generally provide a better description than just the
short security method name.

common/rfb/CSecurityVeNCrypt.cxx
common/rfb/CSecurityVeNCrypt.h

index 4a25245a2eb0a50c3ecc976b743c7782a2a40ec6..f9597cc7ee9907cf7ef016ce549f506ecea7568a 100644 (file)
@@ -191,6 +191,13 @@ bool CSecurityVeNCrypt::processMsg(CConnection* cc)
   return csecurity->processMsg(cc);
 }
 
+const char* CSecurityVeNCrypt::description() const
+{
+  if (csecurity)
+    return csecurity->description();
+  return "VeNCrypt";
+}
+
 bool CSecurityVeNCrypt::isSecure() const
 {
   if (csecurity && csecurity->isSecure())
index 1ff0c020c2fcedb0cfd15b7858af030382e216bd..6d978c75e9c31c86d538dedeea1a7b9f8378d682 100644 (file)
@@ -38,7 +38,7 @@ namespace rfb {
     ~CSecurityVeNCrypt();
     virtual bool processMsg(CConnection* cc);// { return true; }
     int getType() const {return chosenType;}
-    virtual const char* description() const { return secTypeName(chosenType); }
+    virtual const char* description() const;
     virtual bool isSecure() const;
 
   protected: