From: Pierre Ossman Date: Fri, 1 Sep 2017 09:15:57 +0000 (+0200) Subject: Use better security method description when using VeNCrypt X-Git-Tag: v1.8.90~115^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b993ea78d72323709a9e1c6a2fac03e214ef5209;p=tigervnc.git Use better security method description when using VeNCrypt The sub-modules generally provide a better description than just the short security method name. --- diff --git a/common/rfb/CSecurityVeNCrypt.cxx b/common/rfb/CSecurityVeNCrypt.cxx index 4a25245a..f9597cc7 100644 --- a/common/rfb/CSecurityVeNCrypt.cxx +++ b/common/rfb/CSecurityVeNCrypt.cxx @@ -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()) diff --git a/common/rfb/CSecurityVeNCrypt.h b/common/rfb/CSecurityVeNCrypt.h index 1ff0c020..6d978c75 100644 --- a/common/rfb/CSecurityVeNCrypt.h +++ b/common/rfb/CSecurityVeNCrypt.h @@ -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: