Skip to content

Commit 4855067

Browse files
committed
[nrf fromlist] net: lib: tls_credentials_shell: Add a config for heap
The volatile backend stores the credentials on the heap, so, explicitly add a config option that can be overridden in case there are more certs than the default. Upstream PR #: 87656 Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 9af29e2 commit 4855067

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

subsys/net/lib/tls_credentials/Kconfig.shell

+9
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,13 @@ config TLS_CREDENTIALS_SHELL_DIGEST_BUF_SIZE
3232

3333
Also used to print error messages if digest generation fails.
3434

35+
if TLS_CREDENTIALS_BACKEND_VOLATILE
36+
config HEAP_MEM_POOL_ADD_SIZE_TLS_CRED_SHELL
37+
int "TLS credentials shell memory pool size"
38+
# default 4 certs and each assume 1500 bytes
39+
default 6000
40+
help
41+
The size of the memory pool used by the TLS credentials shell.
42+
endif # TLS_CREDENTIALS_BACKEND_VOLATILE
43+
3544
endif # TLS_CREDENTIALS_SHELL

0 commit comments

Comments
 (0)