From 3f57b8cef776b40d0cc30eb21132a3b6032da36d Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Wed, 27 Dec 2023 21:39:10 +0100 Subject: [PATCH] examples/dtls-sock: fix credman capacity It should be possible to test DTLS via `::1`, but this requires 4 slots in the credman instead of just two. --- examples/dtls-sock/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/dtls-sock/Makefile b/examples/dtls-sock/Makefile index 91fa5b9907..19c63b3f63 100644 --- a/examples/dtls-sock/Makefile +++ b/examples/dtls-sock/Makefile @@ -61,3 +61,8 @@ ifeq (,$(filter arch_avr8,$(FEATURES_USED))) else CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(4*THREAD_STACKSIZE_LARGE\) endif + +# We have two credentials for client and server, each. If we are to run both +# server and client, we need four slots in total. The default (2) would be +# sufficient if only client or server is ever run. +CFLAGS += -DCONFIG_CREDMAN_MAX_CREDENTIALS=4