1# Copyright (c) 2023 Nordic Semiconductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4menuconfig TLS_CREDENTIALS_SHELL 5 bool "TLS credentials management shell" 6 depends on TLS_CREDENTIALS 7 depends on SHELL 8 depends on BASE64 9 help 10 Enable shell commands to manage TLS credentials. 11 12if TLS_CREDENTIALS_SHELL 13 14config TLS_CREDENTIALS_SHELL_CRED_BUF_SIZE 15 int "Size of buffer used for storing and retrieving credentials, measured in bytes." 16 default 1024 17 help 18 The amount of preallocated buffer (in bytes) used for storing and retrieving credentials. 19 20config TLS_CREDENTIALS_SHELL_CRED_OUTPUT_WIDTH 21 int "Credential output line width (characters)" 22 default 32 23 help 24 This setting specifies how long (in characters) contiguous lines of base64 credential 25 output should be. Must be a multiple of 4. Applies only to ??? mode. 26 27config TLS_CREDENTIALS_SHELL_DIGEST_BUF_SIZE 28 int "Buffer for generating credentials digests" 29 default 48 30 help 31 The amount of preallocated buffer (in bytes) for temporarily storing credential digests. 32 33 Also used to print error messages if digest generation fails. 34 35if TLS_CREDENTIALS_BACKEND_VOLATILE 36 37config HEAP_MEM_POOL_ADD_SIZE_TLS_CRED_SHELL 38 int "TLS credentials shell memory pool size" 39 # default 4 certs and each assume 1500 bytes 40 default 6000 41 help 42 The size of the memory pool used by the TLS credentials shell. 43endif # TLS_CREDENTIALS_BACKEND_VOLATILE 44 45endif # TLS_CREDENTIALS_SHELL 46