From 4738173276b451970ca530a5e3731ecbdc19d4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20R=C3=B8nningstad?= Date: Fri, 29 Nov 2024 09:13:49 +0100 Subject: [PATCH] zcbor: Improve kconfig help text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ZCBOR_CANONICAL text was outdated. Signed-off-by: Øyvind Rønningstad --- modules/zcbor/Kconfig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/zcbor/Kconfig b/modules/zcbor/Kconfig index deb976bbcd0..5f6ef3b7684 100644 --- a/modules/zcbor/Kconfig +++ b/modules/zcbor/Kconfig @@ -16,7 +16,12 @@ config ZCBOR_CANONICAL bool "Produce canonical CBOR" help Enabling this will prevent zcbor from creating lists and maps with - indefinite-length arrays (it will still decode them properly). + indefinite-length arrays. + Enabling this also enables the state->constant_state->enforce_canonical + flag in all zcbor states. This flag controls validation of canonical + data when decoding. If you only want canonical encoding, please set + the enforce_canonical flag to false in all new state structs after + initialization. config ZCBOR_STOP_ON_ERROR bool "Stop on error when processing (Must also be enabled in state var)" @@ -28,7 +33,7 @@ config ZCBOR_STOP_ON_ERROR has already happened. config ZCBOR_VERBOSE - bool "Make zcbor code print messages" + bool "Make zcbor code print messages via printf" config ZCBOR_ASSERT def_bool ASSERT