Skip to content

Commit f09fec6

Browse files
Signature Boot Mode Added
- Added the ability to change boot mode out of 3 settings - Added a signature boot mode - this is used to sign a new USB - RSA key generation and signatures - Owner, timestamp, comments, standard device name
1 parent b6daea5 commit f09fec6

4 files changed

Lines changed: 322 additions & 84 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ endif()
1111

1212
project ("USBProtection")
1313

14+
find_package(OpenSSL REQUIRED)
15+
1416
# Add source to this project's executable.
1517
add_executable (USBProtection "USBProtection.cpp" "USBProtection.h")
1618

@@ -19,3 +21,5 @@ if (CMAKE_VERSION VERSION_GREATER 3.12)
1921
endif()
2022

2123
# TODO: Add tests and install targets if needed.
24+
target_link_libraries(USBProtection PRIVATE OpenSSL::SSL)
25+
target_link_libraries(USBProtection PRIVATE OpenSSL::Crypto)

CMakePresets.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"version": 3,
33
"configurePresets": [
4+
{
5+
"name" : "vcpkg",
6+
"generator" : "Ninja",
7+
"binaryDir": "${sourceDir}/out/build/${presetName}",
8+
"cacheVariables": {
9+
"CMAKE_TOOLCHAIN_FILE" : "C:/Users/iniga/vcpkg/scripts/buildsystems/vcpkg.cmake"
10+
}
11+
},
412
{
513
"name": "windows-base",
614
"hidden": true,

0 commit comments

Comments
 (0)