diff options
author | Carlos Santos <casantos@redhat.com> | 2023-11-28 18:11:13 -0300 |
---|---|---|
committer | Carlos Santos <casantos@redhat.com> | 2024-04-23 17:41:01 -0300 |
commit | ae81801cccbbef7c424103ec3aee9bfc6021059e (patch) | |
tree | b9d288bf7e8341cad9b54c7f240f84e08bf16e65 /common/rfb/SSecurityVncAuth.cxx | |
parent | 34d96928632b79196cc3d46aa2abd7c1f1122593 (diff) | |
download | tigervnc-ae81801cccbbef7c424103ec3aee9bfc6021059e.tar.gz tigervnc-ae81801cccbbef7c424103ec3aee9bfc6021059e.zip |
Move the AccessRights type and constants to the rfb namespace
They must belong to the rfb namespace, not to the SConnection class.
Also add an AccessNone constant, since it's better to use a mnemonic
symbol rather than zero to initialize the accessRights members.
Signed-off-by: Carlos Santos <casantos@redhat.com>
Diffstat (limited to 'common/rfb/SSecurityVncAuth.cxx')
-rw-r--r-- | common/rfb/SSecurityVncAuth.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rfb/SSecurityVncAuth.cxx b/common/rfb/SSecurityVncAuth.cxx index cbd0ccd2..c1ef1f1c 100644 --- a/common/rfb/SSecurityVncAuth.cxx +++ b/common/rfb/SSecurityVncAuth.cxx @@ -54,7 +54,7 @@ VncAuthPasswdParameter SSecurityVncAuth::vncAuthPasswd SSecurityVncAuth::SSecurityVncAuth(SConnection* sc) : SSecurity(sc), sentChallenge(false), - pg(&vncAuthPasswd), accessRights(0) + pg(&vncAuthPasswd), accessRights(AccessNone) { } @@ -103,13 +103,13 @@ bool SSecurityVncAuth::processMsg() throw AuthFailureException("No password configured for VNC Auth"); if (verifyResponse(passwd.c_str())) { - accessRights = SConnection::AccessDefault; + accessRights = AccessDefault; return true; } if (!passwdReadOnly.empty() && verifyResponse(passwdReadOnly.c_str())) { - accessRights = SConnection::AccessView; + accessRights = AccessView; return true; } |