From 49e2592e3413ea9a1b32087a15b8d95370cdc104 Mon Sep 17 00:00:00 2001 From: makejian Date: Tue, 17 Jun 2025 17:07:27 +0800 Subject: [PATCH] openssl-mbedtls-wrapper: export SSL_ASSERT* macro VELAPLATFO-62586 Change-Id: I2ceac930c87196a16ea7ddf5e4130bb991b51025 Signed-off-by: makejian (cherry picked from commit d0547662d5006ec0a348d89d3d7e251ef4bb183c) --- crypto/openssl_mbedtls_wrapper/Kconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/crypto/openssl_mbedtls_wrapper/Kconfig b/crypto/openssl_mbedtls_wrapper/Kconfig index 197adbc3e..3a4ee11a2 100644 --- a/crypto/openssl_mbedtls_wrapper/Kconfig +++ b/crypto/openssl_mbedtls_wrapper/Kconfig @@ -7,3 +7,25 @@ config OPENSSL_MBEDTLS_WRAPPER depends on CRYPTO_MBEDTLS bool "openssl mbedtls wrapper" default n + +if OPENSSL_MBEDTLS_WRAPPER + +choice + prompt "Openssl Mbedtls Wrapper Assert Debug" + default OPENSSL_ASSERT_EXIT + +config OPENSSL_ASSERT_DEBUG + bool "SSL_ASSERT* will show error file name and line" + +config OPENSSL_ASSERT_EXIT + bool "SSL_ASSERT* will just return error code" + +config OPENSSL_ASSERT_DEBUG_EXIT + bool "SSL_ASSERT* will show error file name and line, then return error code" + +config OPENSSL_ASSERT_DEBUG_BLOCK + bool "SSL_ASSERT* will show error file name and line, then block here with 'while (1)'" + +endchoice + +endif # OPENSSL_MBEDTLS_WRAPPER