aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nitrocli/src/nitrokey.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/nitrocli/src/nitrokey.rs b/nitrocli/src/nitrokey.rs
index 87283c0..d5e21be 100644
--- a/nitrocli/src/nitrokey.rs
+++ b/nitrocli/src/nitrokey.rs
@@ -73,7 +73,11 @@ impl<P> Report<P>
}
pub fn is_valid(&self) -> bool {
- return self.crc == crc(self.data.as_ref());
+ // TODO: Certain commands return a wrong CRC code that does not
+ // match the actual report content. For now we defuse the
+ // check but that cannot stay.
+ // return self.crc == crc(self.data.as_ref());
+ return self.crc != 0;
}
}