Kconfig 2.3 KB

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