string clean

This commit is contained in:
2023-08-30 15:37:57 +02:00
parent 051a13e697
commit 31c23daf5e
3 changed files with 53 additions and 213 deletions

View File

@@ -213,9 +213,9 @@ class PlcLicence
private:
string cidString = "";
char *cid; // CID
char cid[32] = {};
string csdString = "";
char *csd; // CSD
char csd[32] = {}; // CSD
string stationName; // name of station
string distributor; // name of switch
const char *dataFileName; // name of xml containing data (if not taken from commandline)
@@ -236,17 +236,19 @@ private:
string getLicenceName(BYTE licPostfix); // get proper licencename
void initCrypto();
bool CreateEosEovLicence(); // create licence for EOV_OSV
bool ReadEosEovLicence(const char *dataFileName);
bool ReadEosEovLicence(string dataFileName);
public:
string operationErrors = "";
PlcLicence();
PlcLicence(map<string, string> & arguments);
PlcLicence(char *cid, char *csd, string binaryType, string dataFileName);
PlcLicence(string cid, string csd, string binaryType, string dataFileName);
bool CreateLicence(); // creates licence
bool ReadLicence(const char *dataFileName, WORD licType, BYTE licPostfix, char *cid, char *csd); // reads licence file to readable structures
bool ReadLicence(const char *dataFileName, string licenceType, string licenceVersion, char *cid, char *csd);
bool ReadLicence(string dataFileName, string licenceType, string licenceVersion, string cidArg, string csdArg);
// bool CreateEosEovLicence();