mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-05 08:28:32 +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
|
||||
#endif
|
||||
|
||||
#define LWIP_HTTPD_EXAMPLE_HTTPS_KEY_FILE "f:\\dev\\lwip\\https_test\\privateKey.key"
|
||||
#define LWIP_HTTPD_EXAMPLE_HTTPS_CERT_FILE "f:\\dev\\lwip\\https_test\\certificate.crt"
|
||||
|
||||
#if LWIP_HTTPD_EXAMPLE_HTTPS
|
||||
#if LWIP_HTTPD_EXAMPLE_HTTPS && LWIP_ALTCP_TLS
|
||||
|
||||
#ifndef LWIP_HTTPD_EXAMPLE_HTTPS_KEY_FILE
|
||||
#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);
|
||||
fseek(f, 0, SEEK_SET);
|
||||
|
||||
buf = malloc(fsize + 1);
|
||||
buf = (u8_t *)malloc(fsize + 1);
|
||||
if (!buf) {
|
||||
fclose(f);
|
||||
return NULL;
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
#ifndef LWIP_HDR_HTTP_EXAMPLES_HTTPS_EXAMPLE
|
||||
#define LWIP_HDR_HTTP_EXAMPLES_HTTPS_EXAMPLE
|
||||
#define LWIP_HTTPD_EXAMPLE_HTTPS 1
|
||||
|
||||
void https_ex_init(void);
|
||||
|
||||
#endif /* LWIP_HDR_HTTP_EXAMPLES_HTTPS_EXAMPLE */
|
||||
|
Loading…
Reference in New Issue
Block a user