From 4b285a31b0a41503f2258a24c760c58a8c853f4e Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 5 Jan 2021 14:34:43 +0100 Subject: [PATCH] LicenseManager: fix a few typos --- src/lickey/LicenseManager.cpp | 14 +++++++------- src/lickey/LicenseManager.h | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lickey/LicenseManager.cpp b/src/lickey/LicenseManager.cpp index e2b8db4..230d4e5 100644 --- a/src/lickey/LicenseManager.cpp +++ b/src/lickey/LicenseManager.cpp @@ -280,7 +280,7 @@ namespace const Salt& explicitSalt, const Salt& implicitSalt, const Date& lastUsedDate, - std::string& encrepted) + std::string& encrypted) { unsigned char encryptionKey[16]; if(!MakeEncryptionKey(key, vendorName, appName, firstFeatureSign, explicitSalt, encryptionKey)) @@ -306,7 +306,7 @@ namespace unsigned char ecryptedImpl[BUF_SIZE] = { '\0' }; size_t ecryptedImplSize = BUF_SIZE; Encrypt(dst.str().c_str(), dst.str().size(), encryptionKey, encryptionIv, ecryptedImpl, ecryptedImplSize); - EncodeBase64(ecryptedImpl, static_cast(ecryptedImplSize), encrepted); + EncodeBase64(ecryptedImpl, static_cast(ecryptedImplSize), encrypted); return true; } } @@ -320,7 +320,7 @@ namespace lickey const std::string& an) : vendorName(vn) , appName(an) - , isLicenseLorded(false) + , isLicenseLoaded(false) { InitializeOpenSSL(); } @@ -340,7 +340,7 @@ namespace lickey }; licenseFilepath = filepath; - isLicenseLorded = false; + isLicenseLoaded = false; license.key = key; LOG(info) << "start to load license file = " << filepath; @@ -457,7 +457,7 @@ namespace lickey } loadedLicense = license; - isLicenseLorded = true; + isLicenseLoaded = true; return true; } return false; @@ -469,7 +469,7 @@ namespace lickey const HardwareKey& key, License& license*/) { - if(!isLicenseLorded) + if(!isLicenseLoaded) { LOG(error) << "license is not loaded"; return false; @@ -537,7 +537,7 @@ namespace lickey licenseFilepath = filepath; loadedLicense = license; loadedLicense.key = key; - isLicenseLorded = true; + isLicenseLoaded = true; return Update(); } diff --git a/src/lickey/LicenseManager.h b/src/lickey/LicenseManager.h index ede87d6..c8030e1 100644 --- a/src/lickey/LicenseManager.h +++ b/src/lickey/LicenseManager.h @@ -13,7 +13,7 @@ namespace lickey std::string appName; std::string licenseFilepath; - bool isLicenseLorded; + bool isLicenseLoaded; License loadedLicense; public: @@ -31,7 +31,7 @@ namespace lickey unsigned int numLics, License& license); - const std::string& VenderName() const + const std::string& VendorName() const { return vendorName; }; @@ -45,7 +45,7 @@ namespace lickey }; bool IsLicenseLoaded() const { - return isLicenseLorded; + return isLicenseLoaded; }; private: