namespace PT renamed to pt
This commit is contained in:
@@ -86,7 +86,7 @@ void SessionIdManager::SetKeyRenewTime(time_t renew_time)
|
||||
}
|
||||
|
||||
|
||||
void SessionIdManager::ReadKey(const wchar_t * name, PT::Space & space, std::vector<std::string> & dest_key)
|
||||
void SessionIdManager::ReadKey(const wchar_t * name, pt::Space & space, std::vector<std::string> & dest_key)
|
||||
{
|
||||
std::vector<std::wstring> keys;
|
||||
std::string key_ascii, key_base64_decoded;
|
||||
@@ -100,7 +100,7 @@ std::string key_ascii, key_base64_decoded;
|
||||
{
|
||||
dest_key[i].clear();
|
||||
|
||||
if( PT::WideToUTF8(keys[i], key_ascii) )
|
||||
if( pt::WideToUTF8(keys[i], key_ascii) )
|
||||
{
|
||||
if( base64.Decode(key_ascii, key_base64_decoded) )
|
||||
{
|
||||
@@ -140,14 +140,14 @@ void SessionIdManager::InitializeAesKeys()
|
||||
|
||||
bool SessionIdManager::ReadKeysFromFile(const wchar_t * file)
|
||||
{
|
||||
PT::Space space;
|
||||
PT::SpaceParser parser;
|
||||
PT::Date date;
|
||||
pt::Space space;
|
||||
pt::SpaceParser parser;
|
||||
pt::Date date;
|
||||
|
||||
parser.SetSpace(space);
|
||||
PT::SpaceParser::Status status = parser.ParseSpaceFile(file);
|
||||
pt::SpaceParser::Status status = parser.ParseSpaceFile(file);
|
||||
|
||||
if( status == PT::SpaceParser::ok )
|
||||
if( status == pt::SpaceParser::ok )
|
||||
{
|
||||
key_index = space.to_ulong(L"key_index");
|
||||
|
||||
@@ -166,7 +166,7 @@ PT::Date date;
|
||||
log << log1 << "SIM: I cannot read the session keys from: " << file << logend;
|
||||
}
|
||||
|
||||
return status == PT::SpaceParser::ok;
|
||||
return status == pt::SpaceParser::ok;
|
||||
}
|
||||
|
||||
|
||||
@@ -196,8 +196,8 @@ void SessionIdManager::SaveKeysToFile(std::vector<std::string> & keys)
|
||||
|
||||
bool SessionIdManager::SaveKeysToFile(const wchar_t * file)
|
||||
{
|
||||
PT::Date date = last_key_generated;
|
||||
PT::WideToUTF8(file, file_name_ascii);
|
||||
pt::Date date = last_key_generated;
|
||||
pt::WideToUTF8(file, file_name_ascii);
|
||||
|
||||
out_file.clear();
|
||||
out_file.open(file_name_ascii, std::ios_base::binary | std::ios_base::out);
|
||||
|
||||
Reference in New Issue
Block a user