diff --git a/CHANGELOG.md b/CHANGELOG.md index c5570be..8dc0af1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed + +- Upgrade to open62541 version + [1.5.10](https://github.com/open62541/open62541/releases/tag/v1.5.10). + ### Fixed - Fix build on Ubuntu 26.04. diff --git a/build.rs b/build.rs index b2f7503..852ecbf 100644 --- a/build.rs +++ b/build.rs @@ -90,6 +90,12 @@ fn main() { println!("cargo:rustc-link-search={}", dst_lib.display()); println!("cargo:rustc-link-lib={LIB_BASE}"); + if matches!(env::var("CARGO_CFG_TARGET_OS"), Ok(os) if os == "windows") { + // `UA_random_secureBytes()` uses `BCryptGenRandom()` on Windows, regardless of whether + // encryption is enabled. + println!("cargo:rustc-link-lib=bcrypt"); + } + // For encryption support enabled, we add the libraries that have to be used as dependencies for // the final build artifact. // diff --git a/open62541 b/open62541 index 05c2b38..93c3bdf 160000 --- a/open62541 +++ b/open62541 @@ -1 +1 @@ -Subproject commit 05c2b389b65cc35884eb40d800301af1f3d130cf +Subproject commit 93c3bdfc9ea4718b503c6cbf57876237addd0f2c