mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-04-16 08:43:17 +00:00
fix compiling last commit (save before committing...)
This commit is contained in:
parent
19e22f870f
commit
c4f33be3f3
@ -63,10 +63,7 @@
|
|||||||
#define LWIP_HTTPD_EXAMPLE_HTTPS 0
|
#define LWIP_HTTPD_EXAMPLE_HTTPS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LWIP_HTTPD_EXAMPLE_HTTPS_KEY_FILE "f:\\dev\\lwip\\https_test\\privateKey.key"
|
#if LWIP_HTTPD_EXAMPLE_HTTPS && LWIP_ALTCP_TLS
|
||||||
#define LWIP_HTTPD_EXAMPLE_HTTPS_CERT_FILE "f:\\dev\\lwip\\https_test\\certificate.crt"
|
|
||||||
|
|
||||||
#if LWIP_HTTPD_EXAMPLE_HTTPS
|
|
||||||
|
|
||||||
#ifndef LWIP_HTTPD_EXAMPLE_HTTPS_KEY_FILE
|
#ifndef LWIP_HTTPD_EXAMPLE_HTTPS_KEY_FILE
|
||||||
#error "define LWIP_HTTPD_EXAMPLE_HTTPS_KEY_FILE to the created server private key"
|
#error "define LWIP_HTTPD_EXAMPLE_HTTPS_KEY_FILE to the created server private key"
|
||||||
@ -98,7 +95,7 @@ static u8_t *read_file(const char *filename, size_t *file_size)
|
|||||||
fsize = ftell(f);
|
fsize = ftell(f);
|
||||||
fseek(f, 0, SEEK_SET);
|
fseek(f, 0, SEEK_SET);
|
||||||
|
|
||||||
buf = malloc(fsize + 1);
|
buf = (u8_t *)malloc(fsize + 1);
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
#ifndef LWIP_HDR_HTTP_EXAMPLES_HTTPS_EXAMPLE
|
#ifndef LWIP_HDR_HTTP_EXAMPLES_HTTPS_EXAMPLE
|
||||||
#define LWIP_HDR_HTTP_EXAMPLES_HTTPS_EXAMPLE
|
#define LWIP_HDR_HTTP_EXAMPLES_HTTPS_EXAMPLE
|
||||||
#define LWIP_HTTPD_EXAMPLE_HTTPS 1
|
|
||||||
void https_ex_init(void);
|
void https_ex_init(void);
|
||||||
|
|
||||||
#endif /* LWIP_HDR_HTTP_EXAMPLES_HTTPS_EXAMPLE */
|
#endif /* LWIP_HDR_HTTP_EXAMPLES_HTTPS_EXAMPLE */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user