Exemplo n.º 1
0
void RfbInitializer::doAuth(UINT32 authType)
{
  if (authType == AuthDefs::VNC) {
    doVncAuth();
  } else if (authType == AuthDefs::NONE) {
    doAuthNone();
  } else {
    throw Exception(_T(""));
  }
  m_extAuthListener->onCheckAccessControl(m_client);
  if (m_minorVerNum >= 8 || authType != AuthDefs::NONE) {
    m_output->writeUInt32(0); 
  }
}
void RfbInitializer::doAuth(UINT32 authType)
{
  if (authType == AuthDefs::VNC) {
    doVncAuth();
  } else if (authType == AuthDefs::NONE) {
    doAuthNone();
  } else {
    throw Exception(_T(""));
  }
  // Send authentication result.
  if (m_minorVerNum >= 8 || authType != AuthDefs::NONE) {
    m_output->writeUInt32(0); // FIXME: Use a named constant instead of 0.
  }
}
Exemplo n.º 3
0
void RfbInitializer::doAuth(UINT32 authType)
{
  if (authType == AuthDefs::VNC) {
    doVncAuth();
  } else if (authType == AuthDefs::NONE) {
    doAuthNone();
  } else {
    throw Exception(_T(""));
  }
  // Perform additional work via a listener.
  m_extAuthListener->onCheckAccessControl(m_client);
  // Send authentication result.
  if (m_minorVerNum >= 8 || authType != AuthDefs::NONE) {
    m_output->writeUInt32(0); // FIXME: Use a named constant instead of 0.
  }
}