Skip to content

Commit 7469bb4

Browse files
committed
sources: update rustls version to 0.23.40
Signed-off-by: Jingwei Wang <jweiw@amazon.com>
1 parent c294f3a commit 7469bb4

2 files changed

Lines changed: 20 additions & 22 deletions

File tree

sources/Cargo.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sources/bottlerocket-crypto-provider/src/lib.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,11 @@ mod tests {
141141
}
142142

143143
#[test]
144-
fn fips_enabled_defaults_to_false() {
145-
// On non-FIPS systems (or when /proc/sys/crypto/fips_enabled is missing/0),
146-
// fips_enabled() should return false
144+
fn fips_enabled_reads_system_state() {
145+
// Verifies the function runs without error and returns
146+
// a value consistent with the host's FIPS configuration
147147
let enabled = fips_enabled();
148-
assert!(
149-
!enabled,
150-
"Expected fips_enabled() to be false on non-FIPS system"
151-
);
148+
let raw = std::fs::read_to_string("/proc/sys/crypto/fips_enabled").unwrap_or_default();
149+
assert_eq!(enabled, raw.trim() == "1");
152150
}
153151
}

0 commit comments

Comments
 (0)