EgtExecutor 1.6n9 :

- aggiunta funzione ExeGetKeyOptions
- ricompilato per nuovo controllo chiave.
This commit is contained in:
Dario Sassi
2016-03-01 08:38:17 +00:00
parent a69a423376
commit f98e8695f4
2 changed files with 24 additions and 0 deletions
+24
View File
@@ -29,6 +29,7 @@
#include "/EgtDev/Include/EgtLogger.h"
#include "/EgtDev/Include/EgtStringConverter.h"
#include "/EgtDev/Include/SELkLockId.h"
#include "/EgtDev/Include/SELkKeyProc.h"
#include <fstream>
using namespace std ;
@@ -296,6 +297,29 @@ ExeGetKeyInfo( string& sKey)
return true ;
}
//-----------------------------------------------------------------------------
bool
ExeGetKeyOptions( int nProd, int nVer, int nLev, unsigned int& nOpt2)
{
// verifico la chiave e le opzioni
unsigned int nOpt1 ;
int nOptExpDays ;
int nRet = GetKeyOptions( s_sKey, nProd, nVer, nLev, nOpt1, nOpt2, nOptExpDays) ;
if ( nRet != KEY_OK) {
string sErr = "Error on Key (EGKO/" + ToString( nRet) + ")" ;
LOG_ERROR( s_pGenLog, sErr.c_str()) ;
return false ;
}
if ( nOptExpDays < GetCurrDay()) {
nOpt2 = 0 ;
string sErr = "Error on Key (EGKO/OPT)" ;
LOG_ERROR( s_pGenLog, sErr.c_str()) ;
return true ;
}
return true ;
}
//-----------------------------------------------------------------------------
bool
ExeGetOsInfo( string& sOs)
BIN
View File
Binary file not shown.