add JSON and crypto APIs with sandbox protection (milestone 6 complete)

This commit is contained in:
2026-01-18 14:44:51 +01:00
parent a4ecb0f132
commit be663282d7
8 changed files with 1469 additions and 2 deletions

View File

@@ -16,6 +16,8 @@ add_library(mosis-sandbox STATIC
../src/main/cpp/sandbox/rate_limiter.cpp
../src/main/cpp/sandbox/path_sandbox.cpp
../src/main/cpp/sandbox/timer_manager.cpp
../src/main/cpp/sandbox/json_api.cpp
../src/main/cpp/sandbox/crypto_api.cpp
)
target_include_directories(mosis-sandbox PUBLIC
../src/main/cpp/sandbox
@@ -23,7 +25,12 @@ target_include_directories(mosis-sandbox PUBLIC
)
target_link_libraries(mosis-sandbox PUBLIC
${LUA_LIBRARIES}
nlohmann_json::nlohmann_json
)
# Windows BCrypt for crypto API
if(WIN32)
target_link_libraries(mosis-sandbox PUBLIC bcrypt)
endif()
# Test executable
add_executable(sandbox-test