ssl_opt.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. #ifndef _SSL_OPT_H_
  14. #define _SSL_OPT_H_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. /**
  19. * if not define "ESP32_IDF_PLATFORM", system will use esp8266 platform interface
  20. */
  21. #define ESP32_IDF_PLATFORM
  22. /**
  23. * openssl debug print function enable
  24. */
  25. #define SSL_DEBUG_ENBALE 0
  26. /**
  27. * openssl debug print function level. function whose level is lower that "SSL_DEBUG_LEVEL"
  28. * will not print message
  29. */
  30. #define SSL_DEBUG_LEVEL 0
  31. /**
  32. * openssl assert function enable, it will check the input paramter and print the message
  33. */
  34. #define SSL_ASSERT_ENABLE 0
  35. /**
  36. * openssl location function enable, it will print location of the positioning error
  37. */
  38. #define SSL_DEBUG_LOCATION_ENABLE 0
  39. #endif