ELC 3
This commit is contained in:
@@ -20,8 +20,8 @@ namespace Reader
|
||||
bool Licence3::readLicence(LicenceInfoGeneral *licences)
|
||||
{
|
||||
|
||||
//uid load
|
||||
if (getUID() == false) throw LicenceException((int)GeneralError::UIDReadError, "Nepodařilo se načíst UID: " + uid_path);
|
||||
if (this->uid.length() < UID_LENGTH) throw LicenceException((int)GeneralError::UIDReadError, "UID nemá požadovanou velikost: " + uid_path);
|
||||
|
||||
string licFileName = getLicenceName();
|
||||
string licFilePath = this->licenceFilePath + licFileName;
|
||||
@@ -35,8 +35,6 @@ namespace Reader
|
||||
throw LicenceException((int)GeneralError::FileOpenError, "Chyba otevření souboru licence: " + licFilePath);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef SHOW
|
||||
cout << "Celý vstup zašifrovaný: \n";
|
||||
for (const auto &x : content)
|
||||
@@ -192,6 +190,7 @@ namespace Reader
|
||||
|
||||
this->uid = string(content.begin(), content.end());
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user