Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d4df37c500 | ||
|
6c7443e7e4 | ||
|
d6db3c32cc | ||
|
e06d4cbe29 | ||
|
d596186fea | ||
|
61678dc9f6 | ||
|
739992cf29 | ||
|
a9b8d8e5f8 | ||
|
2a460e90dc | ||
|
59a8d29ac4 | ||
|
cb9539639a | ||
|
a151146e8a | ||
|
bb8211ae03 | ||
|
ed5480c7d1 | ||
|
c9a2ab44dd | ||
|
fb29227f9d | ||
|
26629a1a68 | ||
|
db924a9b2e |
4
.github/workflows/build_all.yml
vendored
4
.github/workflows/build_all.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
- name: Create Build Dir
|
||||
run: mkdir build
|
||||
- name: Clone
|
||||
run: git clone --branch 2020.11-1 https://github.com/microsoft/vcpkg.git
|
||||
run: git clone https://github.com/microsoft/vcpkg.git && cd vcpkg && git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
||||
- name: Build VCPKG
|
||||
run: cd vcpkg && bootstrap-vcpkg.bat
|
||||
shell: cmd
|
||||
@@ -71,7 +71,7 @@ jobs:
|
||||
- name: Create Build Dir
|
||||
run: mkdir build
|
||||
- name: Clone
|
||||
run: git clone --branch 2020.11-1 https://github.com/microsoft/vcpkg.git
|
||||
run: git clone https://github.com/microsoft/vcpkg.git && cd vcpkg && git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
||||
- name: Build VCPKG
|
||||
run: cd vcpkg && ./bootstrap-vcpkg.sh
|
||||
shell: bash
|
||||
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
||||
- name: Create Build Dir
|
||||
run: mkdir build
|
||||
- name: Clone
|
||||
run: git clone --branch 2020.11-1 https://github.com/microsoft/vcpkg.git
|
||||
run: git clone https://github.com/microsoft/vcpkg.git && cd vcpkg && git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
||||
- name: Build VCPKG
|
||||
run: cd vcpkg && bootstrap-vcpkg.bat
|
||||
shell: cmd
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
- name: Create Build Dir
|
||||
run: mkdir build
|
||||
- name: Clone
|
||||
run: git clone --branch 2020.11-1 https://github.com/microsoft/vcpkg.git
|
||||
run: git clone https://github.com/microsoft/vcpkg.git && cd vcpkg && git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
||||
- name: Build VCPKG
|
||||
run: cd vcpkg && ./bootstrap-vcpkg.sh
|
||||
shell: bash
|
||||
|
6
Build.md
6
Build.md
@@ -25,8 +25,9 @@ sudo apt install git cmake build-essential curl zip unzip tar pkg-config
|
||||
Open a Terminal window.
|
||||
|
||||
```
|
||||
git clone -b 2020.11-1 https://github.com/microsoft/vcpkg.git
|
||||
git clone https://github.com/microsoft/vcpkg.git
|
||||
cd vcpkg
|
||||
git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
||||
./bootstrap-vcpkg.sh
|
||||
./vcpkg install cpprestsdk[websockets]
|
||||
```
|
||||
@@ -68,8 +69,9 @@ Steps below are for Windows 10 and Visual Studio 2019 Professional.
|
||||
Open an x64 Native Tools Command Prompt for Visual Studio 2019.
|
||||
|
||||
```
|
||||
git clone -b 2020.11-1 https://github.com/microsoft/vcpkg.git
|
||||
git clone https://github.com/microsoft/vcpkg.git
|
||||
cd vcpkg
|
||||
git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
||||
bootstrap-vcpkg.bat
|
||||
vcpkg install cpprestsdk[websockets]:x64-windows-static
|
||||
```
|
||||
|
27
CHANGELOG.md
27
CHANGELOG.md
@@ -1,3 +1,30 @@
|
||||
<a name="v2.0.0"></a>
|
||||
## v2.0.0
|
||||
|
||||
### Build
|
||||
- bump version to v1.3.0
|
||||
- bump version to v2.0.0
|
||||
|
||||
### Ci
|
||||
- update scanning
|
||||
|
||||
### Docs
|
||||
- **readme:** wording
|
||||
- **readme:** update readme
|
||||
- **security:** added SECURITY.md file
|
||||
|
||||
### Feat
|
||||
- update to OpenSSL 1.1.1l
|
||||
- update workflows and Docker build.
|
||||
- Update to latest vcpkg
|
||||
- Update docs and scripts for Windows and Ubuntu.
|
||||
- format json status messages
|
||||
- add AMT wireless adapter info to amtinfo LAN settings.
|
||||
|
||||
### Fix
|
||||
- klockwork reported success / failure check fix
|
||||
- **spelling:** lan inteface -> lan interface in amtinfo
|
||||
|
||||
<a name="v1.2.2"></a>
|
||||
## [v1.2.2] - 2021-06-22
|
||||
### Ci
|
||||
|
@@ -1,6 +1,6 @@
|
||||
cmake_minimum_required (VERSION 3.1)
|
||||
|
||||
project (rpc VERSION 1.2.1)
|
||||
project (rpc VERSION 2.0.0)
|
||||
|
||||
set (CMAKE_CXX_STANDARD 11)
|
||||
|
||||
|
@@ -50,8 +50,9 @@ export PATH=/home/user/Downloads/git:$PATH
|
||||
Using a Terminal window with the PATH and devtoolset enabled per the Dependencies.
|
||||
|
||||
```
|
||||
git clone -b 2020.11-1 https://github.com/microsoft/vcpkg.git
|
||||
git clone https://github.com/microsoft/vcpkg.git
|
||||
cd vcpkg
|
||||
git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
||||
./bootstrap-vcpkg.sh
|
||||
./vcpkg install cpprestsdk[websockets]
|
||||
```
|
||||
|
@@ -28,8 +28,9 @@ sudo yum install cmake
|
||||
Using a Terminal window with the PATH and devtoolset enabled per the Dependencies.
|
||||
|
||||
```
|
||||
git clone -b 2020.11-1 https://github.com/microsoft/vcpkg.git
|
||||
git clone https://github.com/microsoft/vcpkg.git
|
||||
cd vcpkg
|
||||
git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
||||
./bootstrap-vcpkg.sh
|
||||
./vcpkg install cpprestsdk[websockets]
|
||||
```
|
||||
|
@@ -15,7 +15,7 @@ RUN \
|
||||
RUN git clone https://github.com/open-amt-cloud-toolkit/rpc.git
|
||||
WORKDIR /rpc
|
||||
RUN mkdir -p build
|
||||
RUN git clone --branch 2020.11-1 https://github.com/microsoft/vcpkg.git
|
||||
RUN git clone https://github.com/microsoft/vcpkg.git && cd vcpkg && git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
||||
RUN cd vcpkg && ./bootstrap-vcpkg.sh
|
||||
RUN ./vcpkg/vcpkg install cpprestsdk[websockets]
|
||||
|
||||
|
6
info.cpp
6
info.cpp
@@ -273,7 +273,7 @@ bool info_get_lan_interface_settings()
|
||||
bool hasWired = cmd_get_lan_interface_settings(tmp);
|
||||
if (hasWired)
|
||||
{
|
||||
out_text("LAN Inteface", "wired");
|
||||
out_text("LAN Interface", "wired");
|
||||
out_text("DHCP Enabled", (tmp.dhcp_enabled) ? "true" : "false");
|
||||
out_text("DHCP Mode", (tmp.dhcp_mode == 1) ? "active" : "passive");
|
||||
out_text("Link Status", (tmp.link_status) ? "up" : "down");
|
||||
@@ -291,7 +291,7 @@ bool info_get_lan_interface_settings()
|
||||
bool hasWireless = cmd_get_lan_interface_settings(tmp, false);
|
||||
if (hasWireless)
|
||||
{
|
||||
out_text("LAN Inteface", "wireless");
|
||||
out_text("LAN Interface", "wireless");
|
||||
out_text("DHCP Enabled", (tmp.dhcp_enabled) ? "true" : "false");
|
||||
out_text("DHCP Mode", (tmp.dhcp_mode == 1) ? "active" : "passive");
|
||||
out_text("Link Status", (tmp.link_status) ? "up" : "down");
|
||||
@@ -368,4 +368,4 @@ bool info_get_verify(const std::string info)
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
35
main.cpp
35
main.cpp
@@ -7,6 +7,7 @@
|
||||
#include <thread>
|
||||
#include <cpprest/ws_client.h>
|
||||
#include <cpprest/json.h>
|
||||
#include <algorithm>
|
||||
#include "port.h"
|
||||
#include "lms.h"
|
||||
#include "commands.h"
|
||||
@@ -271,7 +272,22 @@ int main(int argc, char* argv[])
|
||||
g_timeout_val = 0;
|
||||
|
||||
// exit
|
||||
std::cout << std::endl << msgMessage << std::endl;
|
||||
try {
|
||||
std::cout << std::endl;
|
||||
utility::string_t tmp = utility::conversions::convertstring(msgMessage);
|
||||
web::json::value parsed = web::json::value::parse(tmp);
|
||||
for (const auto& obj : parsed.as_object()) {
|
||||
std::string key = utility::conversions::to_utf8string(obj.first);
|
||||
std::string value = utility::conversions::to_utf8string(obj.second.serialize());
|
||||
value.erase(std::remove(value.begin(), value.end(), '"'), value.end());
|
||||
std::cout << key << ": " << value << std::endl;
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
std::cout << std::endl << msgMessage << std::endl;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
else if (msgStatus.compare("failed")==0)
|
||||
@@ -280,7 +296,22 @@ int main(int argc, char* argv[])
|
||||
g_timeout_val = 0;
|
||||
|
||||
// exit
|
||||
std::cout << std::endl << msgMessage << std::endl;
|
||||
try {
|
||||
std::cout << std::endl;
|
||||
utility::string_t tmp = utility::conversions::convertstring(msgMessage);
|
||||
web::json::value parsed = web::json::value::parse(tmp);
|
||||
for (const auto& obj : parsed.as_object()) {
|
||||
std::string key = utility::conversions::to_utf8string(obj.first);
|
||||
std::string value = utility::conversions::to_utf8string(obj.second.serialize());
|
||||
value.erase(std::remove(value.begin(), value.end(), '"'), value.end());
|
||||
std::cout << key << ": " << value << std::endl;
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
std::cout << std::endl << msgMessage << std::endl;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -15,8 +15,9 @@ set VCPKG_DIR=C:\opt\vcpkg-source
|
||||
cd %VCPKG_DIR%
|
||||
|
||||
REM build vcpkg
|
||||
git clone --branch 2020.11-1 https://github.com/microsoft/vcpkg.git
|
||||
git clone https://github.com/microsoft/vcpkg.git
|
||||
cd vcpkg
|
||||
git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
||||
cmd /c bootstrap-vcpkg.bat
|
||||
|
||||
REM install CPPRestSDK
|
||||
|
@@ -12,8 +12,9 @@ apt install git cmake build-essential curl zip unzip tar pkg-config -y
|
||||
|
||||
#cd "$BASE_DIR"/rpc
|
||||
## build vcpkg
|
||||
git -C vcpkg pull || git clone --branch 2020.11-1 https://github.com/microsoft/vcpkg.git vcpkg
|
||||
git -C vcpkg pull || git clone https://github.com/microsoft/vcpkg.git vcpkg
|
||||
cd vcpkg
|
||||
git checkout 772d435ba18bf2f342458e0187ab7b48b84fe3f0
|
||||
./bootstrap-vcpkg.sh
|
||||
|
||||
## install CPPRestSDK
|
||||
|
Reference in New Issue
Block a user