blob: 8e495629b31a8b217e632d745db94a17cd706d9d [file] [log] [blame]
#include "estoraged.hpp"
#include <phosphor-logging/lg2.hpp>
#include <iostream>
#include <vector>
namespace estoraged
{
void eStoraged::format(std::vector<uint8_t>)
{
std::cerr << "Formatting encrypted eMMC" << std::endl;
std::string msg = "OpenBMC.0.1.DriveFormat";
lg2::info("Starting format", "REDFISH_MESSAGE_ID", msg);
}
void eStoraged::erase(std::vector<uint8_t>, EraseMethod)
{
std::cerr << "Erasing encrypted eMMC" << std::endl;
std::string msg = "OpenBMC.0.1.DriveErase";
lg2::info("Starting erase", "REDFISH_MESSAGE_ID", msg);
}
void eStoraged::lock(std::vector<uint8_t>)
{
std::cerr << "Locking encrypted eMMC" << std::endl;
std::string msg = "OpenBMC.0.1.DriveLock";
lg2::info("Starting lock", "REDFISH_MESSAGE_ID", msg);
}
void eStoraged::unlock(std::vector<uint8_t>)
{
std::cerr << "Unlocking encrypted eMMC" << std::endl;
std::string msg = "OpenBMC.0.1.DriveUnlock";
lg2::info("Starting unlock", "REDFISH_MESSAGE_ID", msg);
}
void eStoraged::changePassword(std::vector<uint8_t>, std::vector<uint8_t>)
{
std::cerr << "Changing password for encrypted eMMC" << std::endl;
std::string msg = "OpenBMC.0.1.DrivePasswordChanged";
lg2::info("Starting change password", "REDFISH_MESSAGE_ID", msg);
}
} // namespace estoraged