Kconfig 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 print.
  18. config OPENSSL_LOWLEVEL_DEBUG
  19. bool "Enable OpenSSL low-level module debugging"
  20. default n
  21. depends on OPENSSL_DEBUG
  22. select MBEDTLS_DEBUG
  23. help
  24. If the option is enabled, low-level module debugging function of OpenSSL is enabled, e.g. mbedtls internal debugging function.
  25. choice OPENSSL_ASSERT
  26. prompt "Select OpenSSL assert function"
  27. default CONFIG_OPENSSL_ASSERT_EXIT
  28. help
  29. OpenSSL function needs "assert" function to check if input parameters are valid.
  30. If you want to use assert debugging function, "OPENSSL_DEBUG" should be enabled.
  31. config OPENSSL_ASSERT_DO_NOTHING
  32. bool "Do nothing"
  33. help
  34. Do nothing and "SSL_ASSERT" does not work.
  35. config OPENSSL_ASSERT_EXIT
  36. bool "Check and exit"
  37. help
  38. Enable assert exiting, it will check and return error code.
  39. config OPENSSL_ASSERT_DEBUG
  40. bool "Show debugging message"
  41. depends on OPENSSL_DEBUG
  42. help
  43. Enable assert debugging, it will check and show debugging message.
  44. config OPENSSL_ASSERT_DEBUG_EXIT
  45. bool "Show debugging message and exit"
  46. depends on OPENSSL_DEBUG
  47. help
  48. Enable assert debugging and exiting, it will check, show debugging message and return error code.
  49. config OPENSSL_ASSERT_DEBUG_BLOCK
  50. bool "Show debugging message and block"
  51. depends on OPENSSL_DEBUG
  52. help
  53. Enable assert debugging and blocking, it will check, show debugging message and block by "while (1);".
  54. endchoice
  55. endmenu