zephyr/samples/net/sockets/coap_server/Kconfig
Pieter De Gendt 51a4e4c858 samples: net: sockets: coap_server: Add CoAP secure support
Update the CoAP server sample to demonstrate using DTLS for secure
sockets.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-05-01 08:53:32 -04:00

37 lines
912 B
Plaintext

# Copyright (c) 2023, Emna Rekik
# Copyright (c) 2025, Basalte bv
# SPDX-License-Identifier: Apache-2.0
# Config options for CoAP server sample application
mainmenu "CoAP server sample application"
config NET_SAMPLE_COAPS_SERVICE
bool "Enable CoAP secure service"
depends on NET_SOCKETS_ENABLE_DTLS || TLS_CREDENTIALS
config NET_SAMPLE_COAP_SERVER_SERVICE_PORT
int "Port number for CoAP service"
default 5684 if NET_SAMPLE_COAPS_SERVICE
default 5683
if NET_SAMPLE_COAPS_SERVICE
config NET_SAMPLE_PSK_HEADER_FILE
string "Header file containing PSK"
default "dummy_psk.h"
depends on MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
help
Name of a header file containing a pre-shared key.
config NET_SAMPLE_CERTS_WITH_SC
bool "Signed Certificates"
depends on NET_SOCKETS_SOCKOPT_TLS
help
Enable this flag, if you are interested to run this
application with certificates.
endif
source "Kconfig.zephyr"