2016-11-17 21:07:34 -05:00
|
|
|
/* OpenSSL client Example
|
|
|
|
|
|
|
|
This example code is in the Public Domain (or CC0 licensed, at your option.)
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, this
|
|
|
|
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
|
|
CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
*/
|
|
|
|
|
2017-03-22 00:36:11 -04:00
|
|
|
#ifndef _OPENSSL_EXAMPLE_H_
|
|
|
|
#define _OPENSSL_EXAMPLE_H_
|
2016-11-14 22:12:58 -05:00
|
|
|
|
|
|
|
/* The examples use domain of "www.baidu.com" and port number of 433 that
|
2019-06-22 21:54:31 -04:00
|
|
|
you can set via the project configuration menu.
|
2016-11-14 22:12:58 -05:00
|
|
|
|
|
|
|
If you'd rather not, just change the below entries to strings with
|
2017-03-22 00:36:11 -04:00
|
|
|
the config you want - ie #define OPENSSL_EXAMPLE_TARGET_NAME "www.baidu.com"
|
|
|
|
and ie #define OPENSSL_EXAMPLE_TARGET_TCP_PORT 433
|
2016-11-14 22:12:58 -05:00
|
|
|
*/
|
2017-03-22 00:36:11 -04:00
|
|
|
#define OPENSSL_EXAMPLE_TARGET_NAME CONFIG_TARGET_DOMAIN
|
|
|
|
#define OPENSSL_EXAMPLE_TARGET_TCP_PORT CONFIG_TARGET_PORT_NUMBER
|
2016-11-14 22:12:58 -05:00
|
|
|
|
2017-03-22 00:36:11 -04:00
|
|
|
#define OPENSSL_EXAMPLE_REQUEST "{\"path\": \"/v1/ping/\", \"method\": \"GET\"}\r\n"
|
2016-11-14 22:12:58 -05:00
|
|
|
|
2017-03-22 00:36:11 -04:00
|
|
|
#define OPENSSL_EXAMPLE_TASK_NAME "openssl_example"
|
|
|
|
#define OPENSSL_EXAMPLE_TASK_STACK_WORDS 10240
|
2017-08-22 16:27:57 -04:00
|
|
|
#define OPENSSL_EXAMPLE_TASK_PRIORITY 8
|
2016-11-14 22:12:58 -05:00
|
|
|
|
2017-03-22 00:36:11 -04:00
|
|
|
#define OPENSSL_EXAMPLE_RECV_BUF_LEN 1024
|
2016-11-14 22:12:58 -05:00
|
|
|
|
2017-03-22 00:36:11 -04:00
|
|
|
#define OPENSSL_EXAMPLE_LOCAL_TCP_PORT 443
|
2016-11-14 22:12:58 -05:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|