This commit is contained in:
2024-05-16 09:25:25 +02:00
parent ca93b3369f
commit d03261b873
13 changed files with 23 additions and 24 deletions

View File

@@ -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;
}