Browse Source

Use better security method description when using VeNCrypt

The sub-modules generally provide a better description than just the
short security method name.
tags/v1.8.90
Pierre Ossman 6 years ago
parent
commit
b993ea78d7
2 changed files with 8 additions and 1 deletions
  1. 7
    0
      common/rfb/CSecurityVeNCrypt.cxx
  2. 1
    1
      common/rfb/CSecurityVeNCrypt.h

+ 7
- 0
common/rfb/CSecurityVeNCrypt.cxx View 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())

+ 1
- 1
common/rfb/CSecurityVeNCrypt.h View 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:

Loading…
Cancel
Save