Kconfig 2.5 KB

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