Files
spark/src/lib/utils/SecureLogon.h
T

41 lines
1.1 KiB
C++

#pragma once
#include <string>
#include <vector>
namespace bts {
namespace glbx {
struct LogonData {
std::string access_key;
std::string signature; // base64 encoded
std::string hmac;
std::string canonical;
};
LogonData
calculate_hmac(const std::string &session_id, const std::vector<std::string> &);
template <class... Ts>
LogonData calculate_hmac(const std::string &session_id, Ts... inputs) {
return calculate_hmac(session_id, std::vector<std::string>{inputs...});
}
// CME FIX
// LogonData calculate_hmac(
// const std::string& session_id,
// const std::string& msg_seq_num,
// const std::string& sender_comp_id,
// const std::string& sender_sub_id,
// const std::string& sending_time,
// const std::string& target_sub_id,
// const std::string& heartbeat_interval,
// const std::string& sender_location_id,
// const std::string& last_seq_num,
// const std::string& application_system_name,
// const std::string& application_system_version,
// const std::string& application_system_vendor
// );
} // namespace glbx
} // namespace bts