Skip to content

Commit 7ba5e43

Browse files
krish2718kartben
authored andcommitted
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. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent b2e7d7f commit 7ba5e43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

subsys/net/lib/tls_credentials/Kconfig.shell

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,14 @@ 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+
37+
config 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.
43+
endif # TLS_CREDENTIALS_BACKEND_VOLATILE
44+
3545
endif # TLS_CREDENTIALS_SHELL

0 commit comments

Comments
 (0)