xref: /openbmc/estoraged/src/estoraged.cpp (revision 4e13b0a103353b48fac1c592dda0582cc6df26f7)
1 
2 #include "estoraged.hpp"
3 
4 #include <phosphor-logging/lg2.hpp>
5 
6 #include <iostream>
7 #include <vector>
8 
9 namespace estoraged
10 {
11 
12 void eStoraged::format(std::vector<uint8_t>)
13 {
14     std::cerr << "Formatting encrypted eMMC" << std::endl;
15     std::string msg = "OpenBMC.0.1.DriveFormat";
16     lg2::info("Starting format", "REDFISH_MESSAGE_ID", msg);
17 }
18 
19 void eStoraged::erase(std::vector<uint8_t>, EraseMethod)
20 {
21     std::cerr << "Erasing encrypted eMMC" << std::endl;
22     std::string msg = "OpenBMC.0.1.DriveErase";
23     lg2::info("Starting erase", "REDFISH_MESSAGE_ID", msg);
24 }
25 
26 void eStoraged::lock(std::vector<uint8_t>)
27 {
28     std::cerr << "Locking encrypted eMMC" << std::endl;
29     std::string msg = "OpenBMC.0.1.DriveLock";
30     lg2::info("Starting lock", "REDFISH_MESSAGE_ID", msg);
31 }
32 
33 void eStoraged::unlock(std::vector<uint8_t>)
34 {
35     std::cerr << "Unlocking encrypted eMMC" << std::endl;
36     std::string msg = "OpenBMC.0.1.DriveUnlock";
37     lg2::info("Starting unlock", "REDFISH_MESSAGE_ID", msg);
38 }
39 
40 void eStoraged::changePassword(std::vector<uint8_t>, std::vector<uint8_t>)
41 {
42     std::cerr << "Changing password for encrypted eMMC" << std::endl;
43     std::string msg = "OpenBMC.0.1.DrivePasswordChanged";
44     lg2::info("Starting change password", "REDFISH_MESSAGE_ID", msg);
45 }
46 
47 } // namespace estoraged
48