2016-11-18 02:07:34 +00:00
|
|
|
/* OpenSSL server 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.
|
|
|
|
*/
|
|
|
|
|
2016-12-21 04:04:26 +00:00
|
|
|
#ifndef _OPENSSL_SERVER_H_
|
|
|
|
#define _OPENSSL_SERVER_H_
|
|
|
|
|
|
|
|
#include "sdkconfig.h"
|
2016-11-15 07:08:51 +00:00
|
|
|
|
|
|
|
/* The examples use simple WiFi configuration that you can set via
|
|
|
|
'make menuconfig'.
|
|
|
|
|
|
|
|
If you'd rather not, just change the below entries to strings with
|
|
|
|
the config you want - ie #define EXAMPLE_WIFI_SSID "mywifissid"
|
|
|
|
*/
|
|
|
|
#define EXAMPLE_WIFI_SSID CONFIG_WIFI_SSID
|
|
|
|
#define EXAMPLE_WIFI_PASS CONFIG_WIFI_PASSWORD
|
|
|
|
|
|
|
|
#define OPENSSL_DEMO_THREAD_NAME "OpenSSL_demo"
|
|
|
|
#define OPENSSL_DEMO_THREAD_STACK_WORDS 10240
|
|
|
|
#define OPENSSL_DEMO_THREAD_PRORIOTY 8
|
|
|
|
|
|
|
|
#define OPENSSL_DEMO_RECV_BUF_LEN 1024
|
|
|
|
|
|
|
|
#define OPENSSL_DEMO_LOCAL_TCP_PORT 443
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|