KeyGenerator 2.5j1 :

- modifiche per chiave di rete esposta in Internet.
This commit is contained in:
Dario Sassi
2023-10-09 13:10:31 +02:00
parent 2dcb2d7f01
commit d669e82afa
3 changed files with 5 additions and 2 deletions
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -1,7 +1,7 @@
//----------------------------------------------------------------------------
// EgalTech 2013-2023
//----------------------------------------------------------------------------
// File : KeyGeneratorDlg.cpp Data : 23.05.23 Versione : 2.5e1
// File : KeyGeneratorDlg.cpp Data : 09.10.23 Versione : 2.5j1
// Contenuto : Implementazione della classe dialogo generatore chiavi.
//
//
@@ -11,6 +11,7 @@
// 15.05.21 DS Aggiunto EgtBeamWall.
// 02.01.23 DS Aggiunto Icarus.
// 23.05.23 DS Aggiunto EgtEngine.
// 09.10.23 DS Aggiunta gestione chiave di rete con LockId contenente AddrPort dopo @.
//
//----------------------------------------------------------------------------
+3 -1
View File
@@ -60,8 +60,10 @@ KeyMaker::SetLockId( const string& sLockId2)
{
// se identificativo di chiave, è direttamente in chiaro
if ( sLockId2.find( KEY_LOCK_HW_START) != string::npos) {
string sTrueLockId, sAddrPort ;
SplitFirst( sLockId2, "@", sTrueLockId, sAddrPort) ;
m_sLockId2 = sLockId2 ;
m_sLockId = sLockId2 ;
m_sLockId = sTrueLockId ;
// calcolo chiave di scramble
string sScramKey ;
if ( ! ConvertLockIdToScramKey( m_sLockId, sScramKey))