Skip to content

Commit

Permalink
Add tests for the preservation of the trussed certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Nov 20, 2023
1 parent b176bf8 commit fc1047c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ littlefs2 = { git = "https://github.com/trussed-dev/littlefs2", rev = "e6c46e7ba
# unreleased crates
secrets-app = { git = "https://github.com/Nitrokey/trussed-secrets-app", tag = "v0.13.0-rc2" }
webcrypt = { git = "https://github.com/nitrokey/nitrokey-websmartcard-rust", tag = "v0.8.0-rc4"}
opcard = { git = "https://github.com/Nitrokey/opcard-rs", rev = "6dfe4c1112443e337591f59c0b74ece79a2e2c30" }
opcard = { git = "https://github.com/Nitrokey/opcard-rs", rev = "a824c6473ce1b88b45b32de21089401fc9f7f683" }
piv-authenticator = { git = "https://github.com/Nitrokey/piv-authenticator", tag = "v0.3.3" }
se05x = { git = "https://github.com/Nitrokey/se05x.git", tag = "v0.1.0"}
trussed-auth = { git = "https://github.com/trussed-dev/trussed-auth", rev = "62235294bd63977bbb88eb01e7ac44b8010eb450" }
Expand Down
7 changes: 7 additions & 0 deletions components/apps/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,13 @@ mod tests {
assert!(should_preserve_file(path!("/fido/x5c/00")));
assert!(should_preserve_file(path!("/fido/sec/01")));
assert!(should_preserve_file(path!("/fido/x5c/01")));
assert!(should_preserve_file(path!("/attn/pub/00")));
assert!(should_preserve_file(path!("/attn/sec/01")));
assert!(should_preserve_file(path!("/attn/sec/02")));
assert!(should_preserve_file(path!("/attn/sec/03")));
assert!(should_preserve_file(path!("/attn/x5c/01")));
assert!(should_preserve_file(path!("/attn/x5c/02")));
assert!(should_preserve_file(path!("/attn/x5c/03")));
assert!(!should_preserve_file(path!("/fido/dat/sec/00")));
}
}

0 comments on commit fc1047c

Please sign in to comment.