1menu "OpenSSL" 2 3 config OPENSSL_DEBUG 4 bool "Enable OpenSSL debugging" 5 default n 6 help 7 Enable OpenSSL debugging function. 8 9 If the option is enabled, "SSL_DEBUG" works. 10 11 config OPENSSL_ERROR_STACK 12 bool "Enable OpenSSL error structure" 13 default y 14 help 15 Enable OpenSSL Error reporting 16 17 config OPENSSL_DEBUG_LEVEL 18 int "OpenSSL debugging level" 19 default 0 20 range 0 255 21 depends on OPENSSL_DEBUG 22 help 23 OpenSSL debugging level. 24 25 Only function whose debugging level is higher than "OPENSSL_DEBUG_LEVEL" works. 26 27 For example: 28 If OPENSSL_DEBUG_LEVEL = 2, you use function "SSL_DEBUG(1, "malloc failed")". Because 1 < 2, it will not 29 print. 30 31 config OPENSSL_LOWLEVEL_DEBUG 32 bool "Enable OpenSSL low-level module debugging" 33 default n 34 depends on OPENSSL_DEBUG 35 select MBEDTLS_DEBUG 36 help 37 If the option is enabled, low-level module debugging function of OpenSSL is enabled, e.g. mbedtls internal 38 debugging function. 39 40 choice OPENSSL_ASSERT 41 prompt "Select OpenSSL assert function" 42 default OPENSSL_ASSERT_EXIT 43 help 44 OpenSSL function needs "assert" function to check if input parameters are valid. 45 46 If you want to use assert debugging function, "OPENSSL_DEBUG" should be enabled. 47 48 config OPENSSL_ASSERT_DO_NOTHING 49 bool "Do nothing" 50 help 51 Do nothing and "SSL_ASSERT" does not work. 52 53 config OPENSSL_ASSERT_EXIT 54 bool "Check and exit" 55 help 56 Enable assert exiting, it will check and return error code. 57 58 config OPENSSL_ASSERT_DEBUG 59 bool "Show debugging message" 60 depends on OPENSSL_DEBUG 61 help 62 Enable assert debugging, it will check and show debugging message. 63 64 config OPENSSL_ASSERT_DEBUG_EXIT 65 bool "Show debugging message and exit" 66 depends on OPENSSL_DEBUG 67 help 68 Enable assert debugging and exiting, it will check, show debugging message and return error code. 69 70 config OPENSSL_ASSERT_DEBUG_BLOCK 71 bool "Show debugging message and block" 72 depends on OPENSSL_DEBUG 73 help 74 Enable assert debugging and blocking, it will check, show debugging message and block by "while (1);". 75 76 endchoice 77 78endmenu 79