#
# Copyright (c) 2021 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

source "Kconfig.zephyr"

menu "PSA TLS sample"

choice PSA_TLS_CERTIFICATE_TYPE
	prompt "RSA or ECDSA certifcates"
	default PSA_TLS_CERTIFICATE_TYPE_ECDSA

config PSA_TLS_CERTIFICATE_TYPE_RSA
	bool "Use RSA certificate in PSA TLS sample"
	help
	  Enable RSA certificates when testing ciphers that supports RSA for authentication.

config PSA_TLS_CERTIFICATE_TYPE_ECDSA
	bool "Use ECDSA certificate in PSA TLS sample"
	help
	  Enable ECDSA certificates when testing ciphers that supports ECDSA for authentication.

endchoice

choice PSA_TLS_SAMPLE_TYPE
	prompt "Server or Client selection"
	default PSA_TLS_SAMPLE_TYPE_SERVER

config PSA_TLS_SAMPLE_TYPE_SERVER
	bool "Enable Server functionality in PSA TLS sample"

config PSA_TLS_SAMPLE_TYPE_CLIENT
	bool "Enable Client functionality in PSA TLS sample"

endchoice

config NET_CONFIG_MY_IPV4_ADDR
	default "192.0.2.1" if PSA_TLS_SAMPLE_TYPE_SERVER
	default "192.0.2.2" if PSA_TLS_SAMPLE_TYPE_CLIENT

config NET_CONFIG_PEER_IPV4_ADDR
	default "192.0.2.2" if PSA_TLS_SAMPLE_TYPE_SERVER
	default "192.0.2.1" if PSA_TLS_SAMPLE_TYPE_CLIENT

endmenu
