Backport mdp3main changes from edge
This commit is contained in:
1 parent
a64001a333
commit
09f96d4cce
2 files changed
+8
-8
No files matched your search
@@ -14,13 +14,13 @@
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/tokenizer.hpp>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
// #include "catch/catch.hpp"
|
||||
|
||||
#include <tuple>
|
||||
|
||||
using namespace CryptoPP;
|
||||
using namespace boost;
|
||||
using namespace boost;
|
||||
using std::string;
|
||||
|
||||
namespace bts {
|
||||
@@ -65,7 +65,8 @@ std::tuple<string, string> load_session_keys(const string& session) {
|
||||
}
|
||||
}
|
||||
}
|
||||
bts_assert(false);
|
||||
string error = "Failed to find secure logon key for session: " + session;
|
||||
bts_assert_msg(false, error);
|
||||
}
|
||||
|
||||
LogonData calculate_hmac(
|
||||
@@ -107,6 +108,7 @@ LogonData calculate_hmac(
|
||||
|
||||
string secret_key, access_id;
|
||||
std::tie(access_id, secret_key) = load_session_keys(session_id);
|
||||
// LOG(o2, info, "Loaded access_id {} and secret {} for session {}", access_id, secret_key, session_id);
|
||||
|
||||
try {
|
||||
string decoded_key;
|
||||
|
||||
Reference in new issue
Block a user