Commit 6936bfd
Harden DLL loading, enable SSL for pcm-sensor-server on Windows CI
Security:
- Add SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32) to PCM_SET_DLL_DIR
macro in utils.h to prevent DLL planting attacks (CWE-427)
- Update WINDOWS_HOWTO.md with DLL planting prevention guidance
SSL enablement:
- Set OPENSSL_ROOT_DIR and pass LIB_EAY_RELEASE/SSL_EAY_RELEASE to CMake so
FindOpenSSL locates the static libraries in lib/VC/x64/MT/
- Remove premature include(FindOpenSSL) from src/CMakeLists.txt
- Link crypt32 and ws2_32 on MSVC for static OpenSSL dependencies1 parent 41faa0b commit 6936bfd
File tree
4 files changed
+15
-5
lines changed- .github/workflows
- doc
- src
4 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
220 | 218 | | |
221 | 219 | | |
222 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
223 | 225 | | |
224 | 226 | | |
225 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
0 commit comments