|
@@ -4,18 +4,19 @@
|
|
|
* Created on: 08.11.2017
|
|
|
* Author: balbekova
|
|
|
*/
|
|
|
-#ifdef SSL_SERVER_ENABLE
|
|
|
|
|
|
#ifndef MY_SSL_SERVER_H_
|
|
|
#define MY_SSL_SERVER_H_
|
|
|
|
|
|
-
|
|
|
+#include "common_config.h"
|
|
|
#include "lwip/opt.h"
|
|
|
#include "lwip/arch.h"
|
|
|
#include "lwip/api.h"
|
|
|
|
|
|
#include "mbedtls/ssl.h"
|
|
|
|
|
|
+#ifdef SSL_SERVER_ENABLE
|
|
|
+
|
|
|
#define HTTP_AUTH_ENABLE
|
|
|
|
|
|
#define SSL_TASK_PRIO ( configMAX_PRIORITIES - 3 )
|
|
@@ -241,6 +242,7 @@ void ssl_server(void *pvParameters);
|
|
|
int RandVal(void* arg);
|
|
|
void HTTP_SendHistory(void);
|
|
|
void HTTP_SendLog(void);
|
|
|
+void HTTP_Init();
|
|
|
void HTTPS_Init();
|
|
|
int SSL_ReadRoutine(mbedtls_ssl_context *ssl, unsigned char* recvBuf);
|
|
|
char* SSL_ProcessingRoutine(uint16_t* sendLen);
|
|
@@ -253,7 +255,7 @@ SSL_SERVER_STATE SSL_Write(mbedtls_ssl_context *ssl, char *data, int datalen);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
-
|
|
|
+#endif
|
|
|
|
|
|
#endif /* SSL_SERVER_H_ */
|
|
|
-#endif
|
|
|
+
|