Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LicenseManager: fix a few typos #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/lickey/LicenseManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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<int>(ecryptedImplSize), encrepted);
EncodeBase64(ecryptedImpl, static_cast<int>(ecryptedImplSize), encrypted);
return true;
}
}
Expand All @@ -320,7 +320,7 @@ namespace lickey
const std::string& an)
: vendorName(vn)
, appName(an)
, isLicenseLorded(false)
, isLicenseLoaded(false)
{
InitializeOpenSSL();
}
Expand All @@ -340,7 +340,7 @@ namespace lickey
};

licenseFilepath = filepath;
isLicenseLorded = false;
isLicenseLoaded = false;
license.key = key;

LOG(info) << "start to load license file = " << filepath;
Expand Down Expand Up @@ -457,7 +457,7 @@ namespace lickey
}

loadedLicense = license;
isLicenseLorded = true;
isLicenseLoaded = true;
return true;
}
return false;
Expand All @@ -469,7 +469,7 @@ namespace lickey
const HardwareKey& key,
License& license*/)
{
if(!isLicenseLorded)
if(!isLicenseLoaded)
{
LOG(error) << "license is not loaded";
return false;
Expand Down Expand Up @@ -537,7 +537,7 @@ namespace lickey
licenseFilepath = filepath;
loadedLicense = license;
loadedLicense.key = key;
isLicenseLorded = true;
isLicenseLoaded = true;
return Update();
}

Expand Down
6 changes: 3 additions & 3 deletions src/lickey/LicenseManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace lickey
std::string appName;

std::string licenseFilepath;
bool isLicenseLorded;
bool isLicenseLoaded;
License loadedLicense;

public:
Expand All @@ -31,7 +31,7 @@ namespace lickey
unsigned int numLics,
License& license);

const std::string& VenderName() const
const std::string& VendorName() const
{
return vendorName;
};
Expand All @@ -45,7 +45,7 @@ namespace lickey
};
bool IsLicenseLoaded() const
{
return isLicenseLorded;
return isLicenseLoaded;
};

private:
Expand Down