Skip to content

Commit 8291859

Browse files
authored
Merge pull request #60 from Foundation-Devices/SFT-6589-security-check-distingushment
API: add Failure variant to VerificationResult
2 parents bf750cf + f140383 commit 8291859

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/src/api/scv.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,13 @@ pub enum ChallengeResponseResult {
4040
pub enum VerificationResult {
4141
#[n(0)]
4242
Success,
43+
// Error due to Envoy not being able to perform the verification
4344
#[n(1)]
4445
Error {
4546
#[n(0)]
4647
error: String,
4748
},
49+
// Actual failure indicating device has been tampered with
50+
#[n(2)]
51+
Failure,
4852
}

0 commit comments

Comments
 (0)