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
+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))