openssl_client_example.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /* OpenSSL client Example
  2. This example code is in the Public Domain (or CC0 licensed, at your option.)
  3. Unless required by applicable law or agreed to in writing, this
  4. software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  5. CONDITIONS OF ANY KIND, either express or implied.
  6. */
  7. #ifndef _OPENSSL_EXAMPLE_H_
  8. #define _OPENSSL_EXAMPLE_H_
  9. /* The examples use domain of "www.baidu.com" and port number of 433 that
  10. you can set via the project configuration menu.
  11. If you'd rather not, just change the below entries to strings with
  12. the config you want - ie #define OPENSSL_EXAMPLE_TARGET_NAME "www.baidu.com"
  13. and ie #define OPENSSL_EXAMPLE_TARGET_TCP_PORT 433
  14. */
  15. #define EXAMPLE_OPENSSL_TARGET_DOMAIN CONFIG_EXAMPLE_OPENSSL_CLIENT_TARGET_DOMAIN
  16. #define EXAMPLE_OPENSSL_TARGET_PORT CONFIG_EXAMPLE_OPENSSL_CLIENT_TARGET_PORT
  17. #define EXAMPLE_OPENSSL_REQUEST "{\"path\": \"/v1/ping/\", \"method\": \"GET\"}\r\n"
  18. #define EXAMPLE_OPENSSL_TASK_NAME "openssl_example"
  19. #define EXAMPLE_OPENSSL_TASK_STACK_WORDS 10240
  20. #define EXAMPLE_OPENSSL_TASK_PRIORITY 8
  21. #define EXAMPLE_OPENSSL_RECV_BUF_LEN 1024
  22. #endif