mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-27 18:47:13 +08:00
httpd: add support for https
This commit is contained in:
@@ -228,6 +228,10 @@ void httpd_post_data_recved(void *connection, u16_t recved_len);
|
||||
|
||||
void httpd_init(void);
|
||||
|
||||
#if HTTPD_ENABLE_HTTPS
|
||||
struct altcp_tls_config;
|
||||
void httpd_inits(struct altcp_tls_config *conf);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -132,6 +132,16 @@
|
||||
#define HTTPD_SERVER_PORT 80
|
||||
#endif
|
||||
|
||||
/** The https server port for HTTPD to use */
|
||||
#if !defined HTTPD_SERVER_PORT_HTTPS || defined __DOXYGEN__
|
||||
#define HTTPD_SERVER_PORT_HTTPS 443
|
||||
#endif
|
||||
|
||||
/** Enable https support? */
|
||||
#if !defined HTTPD_ENABLE_HTTPS || defined __DOXYGEN__
|
||||
#define HTTPD_ENABLE_HTTPS 0
|
||||
#endif
|
||||
|
||||
/** Maximum retries before the connection is aborted/closed.
|
||||
* - number of times pcb->poll is called -> default is 4*500ms = 2s;
|
||||
* - reset when pcb->sent is called
|
||||
|
||||
Reference in New Issue
Block a user