From 29af982406de0bd3d00435bff38810779c483e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Tue, 30 Jul 2024 11:08:17 +0200 Subject: [PATCH] And random generator and config failures to init status bytes --- CHANGELOG.md | 4 +++- src/nitrokey/trussed/admin_app.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c65dcd6..d4e8273 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,9 @@ ## Unreleased -- +### Features + +- `trussed.admin_app`: Add error codes `CONFIG_ERROR` and `RNG_ERROR` to `InitStatus` enum ## [v0.1.0](https://github.com/Nitrokey/nitrokey-sdk-py/releases/tag/v0.1.0) (2024-07-29) diff --git a/src/nitrokey/trussed/admin_app.py b/src/nitrokey/trussed/admin_app.py index 62865c8..fba9c2e 100644 --- a/src/nitrokey/trussed/admin_app.py +++ b/src/nitrokey/trussed/admin_app.py @@ -60,6 +60,8 @@ class InitStatus(IntFlag): EXTERNAL_FLASH_ERROR = 0b0100 MIGRATION_ERROR = 0b1000 SE050_ERROR = 0b00010000 + CONFIG_ERROR = 0b00100000 + RNG_ERROR = 0b01000000 def is_error(self) -> bool: return self.value != 0