feat: use mocked values for now
This commit is contained in:
@@ -32,6 +32,9 @@ bool cmd_is_admin()
|
||||
|
||||
bool cmd_get_version(std::string& version)
|
||||
{
|
||||
version = "14.0.0"; // FIXME: REMOVE WHEN HW AVAILABLE
|
||||
return true; // FIXME: REMOVE WHEN HW AVAILABLE
|
||||
|
||||
version.clear();
|
||||
|
||||
// initialize HECI interface
|
||||
@@ -413,6 +416,10 @@ bool cmd_get_lan_interface_settings(lan_interface_settings& lan_interface_settin
|
||||
|
||||
bool cmd_start_config_host_based(config_host_based_settings& server_cert, config_host_based_settings& amt_cert)
|
||||
{
|
||||
amt_cert.algorithm = "MD5"; // FIXME: REMOVE WHEN HW AVAILABLE
|
||||
amt_cert.hash = "000102030405060708090a0b0c0d0e0f"; // FIXME: REMOVE WHEN HW AVAILABLE
|
||||
return true; // FIXME: REMOVE WHEN HW AVAILABLE
|
||||
|
||||
// initialize HECI interface
|
||||
if (heci_Init(NULL, PTHI_CLIENT) == 0) return false;
|
||||
|
||||
|
6
main.cpp
6
main.cpp
@@ -248,7 +248,7 @@ int main(int argc, char* argv[])
|
||||
return;
|
||||
}
|
||||
|
||||
if (msgMethod.compare("request_secure_config") == 0)
|
||||
if (msgMethod.compare("secure_config_request") == 0)
|
||||
{
|
||||
std::string certAlgo;
|
||||
std::string certHash;
|
||||
@@ -260,10 +260,10 @@ int main(int argc, char* argv[])
|
||||
web::json::value parsed_cert_info = web::json::value::parse(tmp);
|
||||
|
||||
out = parsed_cert_info[U("algorithm")].as_string();
|
||||
std::string certAlgo = utility::conversions::to_utf8string(out);
|
||||
certAlgo = utility::conversions::to_utf8string(out);
|
||||
|
||||
out = parsed_cert_info[U("hash")].as_string();
|
||||
std::string certHash = utility::conversions::to_utf8string(out);
|
||||
certHash = utility::conversions::to_utf8string(out);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
2
shbc.cpp
2
shbc.cpp
@@ -37,7 +37,7 @@ bool shbc_create_response(std::string cert_algo, std::string cert_hash, std::str
|
||||
{
|
||||
web::json::value msg;
|
||||
|
||||
utility::string_t tmp = utility::conversions::convertstring("response_secure_config");
|
||||
utility::string_t tmp = utility::conversions::convertstring("secure_config_response");
|
||||
msg[U("method")] = web::json::value::string(tmp);
|
||||
|
||||
tmp = utility::conversions::convertstring("");
|
||||
|
Reference in New Issue
Block a user