Developer Experience Release. Added LMS and code refactor.

This commit is contained in:
Mudit Vats
2020-09-01 16:04:04 -07:00
parent 958096a375
commit 23fe0e1663
53 changed files with 20738 additions and 895 deletions

View File

@@ -17,32 +17,17 @@ limitations under the License.
#ifndef __COMMANDS_H__
#define __COMMANDS_H__
#include <iostream>
#include <vector>
#include <string>
#include <cpprest/ws_client.h>
#include <cpprest/json.h>
#include <cpprest/streams.h>
using namespace std;
using namespace web::websockets::client;
using namespace web;
#define PROTOCOL_VERSION "2.0.0"
#ifdef _WIN32
#define convertstring to_utf16string
#else
#define convertstring to_utf8string
#endif
string getDNSInfo();
string createActivationRequest(string profile, string dnssuffixcmd);
json::value getCertificateHashes();
string createResponse(string payload);
string getActivateInfo(string profile, string dnssuffixcmd);
string encodeBase64(string str);
string decodeBase64(string str);
void dumpMessage(string tmp);
bool cmd_get_version(std::string& version);
bool cmd_get_build_number(std::string& version);
bool cmd_get_sku(std::string& version);
bool cmd_get_uuid(std::vector<unsigned char>& uuid);
bool cmd_get_local_system_account(std::string& username, std::string& password);
bool cmd_get_control_mode(int& mode);
bool cmd_get_dns_suffix(std::string& suffix);
bool cmd_get_wired_mac_address(std::vector<unsigned char>& address);
bool cmd_get_certificate_hashes(std::vector<std::string>& hashes);
#endif