Skip to content

Commit 32c37bc

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 1b48947 commit 32c37bc

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)