Skip to content

Commit ae4cb56

Browse files
committed
[webwindow] reduce key complexity when not used
In such case key is just optional parameter used to identify client but not for security
1 parent 8a06f2f commit ae4cb56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gui/webdisplay/src/RWebWindow.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,9 @@ void RWebWindow::RemoveKey(const std::string &key)
611611

612612
std::string RWebWindow::GenerateKey() const
613613
{
614-
auto key = RWebWindowsManager::GenerateKey(32);
614+
auto key = RWebWindowsManager::GenerateKey(IsRequireAuthKey() ? 32 : 4);
615615

616-
R__ASSERT((!HasKey(key) && (key != fMgr->fSessionKey)) && "Fail to generate window connection key");
616+
R__ASSERT((!IsRequireAuthKey() || (!HasKey(key) && (key != fMgr->fSessionKey))) && "Fail to generate window connection key");
617617

618618
return key;
619619
}

0 commit comments

Comments
 (0)