OVMS3-idf/components
Ondřej Hruška 13a1f4ed78 esp_http_server improvements to allow adding transport layer encryption
Changes:
- renamed `httpd_free_sess_ctx_fn_t` to `httpd_free_ctx_fn_t`
- added a `httpd_handle_t` argument to `httpd_send_func_t` and `httpd_recv_func_t`
- internal function `httpd_sess_get()` is no longer static, as it's used in other
  files besides httpd_sess.c

Bug fixes:
- removed a trailing semicolon from `HTTPD_DEFAULT_CONFIG()`
- fixed issue with failed `select()`, now it automatically closes invalid sockets
  instead of shutting down the entire server

New features:
- `httpd_resp_send()` and `httpd_resp_send_chunk()` now accept -1 as length to use
  `strlen()` internally
- added `httpd_sess_set_ctx()` to accompany `httpd_sess_get_ctx()`
- added a "transport context" to the session structure (next to user context)
- added `httpd_sess_{get,set}_transport_ctx()` to work with this transport context
- added "global user context" and "global transport context" stored in the server
  config (and then the handle); supports a user-provided free_fn
- added a "pending func" to e.g. check for data in the transport layer receive
  buffer
- added functions `httpd_set_sess_{send,recv,pending}_override()` that target
  a session by ID (i.e. not using a request object)
- added `httpd_set_pending_override()`
- added a "open_fn" and "close_fn" - functions called when creating and closing
  a session. These may be used to set up transport layer encryption or some other
  session-wide feature
2019-02-03 21:32:07 +05:30
..
app_trace cmake: Add support for test build 2018-10-20 12:07:24 +08:00
app_update bugfix/ota_magic_byte_issue: Fix indent and replace constant by macro 2018-12-20 12:29:25 +05:30
asio cmake: make main a component again 2018-09-11 09:44:12 +08:00
aws_iot cmake: make main a component again 2018-09-11 09:44:12 +08:00
bootloader cmake: remove unecessary info passed to bootloader build 2018-11-23 16:12:14 +08:00
bootloader_support Merge branch 'bugfix/bootloader_map_size_v3.2' into 'release/v3.2' 2019-01-24 14:09:35 +08:00
bt Merge branch 'bugfix/btdm_add_handle_in_gatts_conf_event_for_indication_v3.2' into 'release/v3.2' 2019-02-01 21:34:05 +08:00
coap cmake: silence some warnings in coap, bt, expat, libsodium, lwip and examples/bluetooth 2018-09-20 18:53:15 +08:00
console cmake: fix source list issues 2018-09-13 08:56:59 +08:00
cxx cmake: Add support for test build 2018-10-20 12:07:24 +08:00
driver bugfix(i2c): reduce speed of I2C master bus reset routine and release SDA 2019-01-22 11:43:55 +08:00
esp-tls Merge branch 'bugfix/esp-tls-doc' into 'master' 2018-11-05 12:30:22 +08:00
esp32 mesh: modify to malloc routing table 2019-01-31 13:46:50 +08:00
esp_adc_cal cmake: make main a component again 2018-09-11 09:44:12 +08:00
esp_event esp_event: lower test performance threshold for PSRAM config 2018-11-01 13:50:08 +08:00
esp_http_client esp_http_client: Fix crash in async mode 2018-10-30 09:58:57 +00:00
esp_http_server esp_http_server improvements to allow adding transport layer encryption 2019-02-03 21:32:07 +05:30
esp_https_ota cmake: make main a component again 2018-09-11 09:44:12 +08:00
esp_ringbuf cmake: Add support for test build 2018-10-20 12:07:24 +08:00
espcoredump cmake: Add support for test build 2018-10-20 12:07:24 +08:00
esptool_py Update esptool.py to v2.6 2019-01-23 17:02:02 +08:00
ethernet ethernet: phy init timeout 2018-12-05 16:32:24 +08:00
expat cmake: Add support for test build 2018-10-20 12:07:24 +08:00
fatfs fatfs: Do not log from critical sections 2018-11-26 09:21:44 +01:00
freemodbus examples: freemodbus port serial slave move uart mode settings into example 2018-12-21 09:54:26 +01:00
freertos freertos: Make backtrace work across interrupts (backport v3.2) 2019-01-29 02:22:04 +08:00
heap multi_heap: Fix bug when start of heap is unaligned 2018-12-21 19:03:12 +11:00
idf_test Merge branch 'feature/add_ipv6_related_change_v3.2' into 'release/v3.2' 2019-01-31 14:31:44 +08:00
jsmn cmake: make main a component again 2018-09-11 09:44:12 +08:00
json cmake: make main a component again 2018-09-11 09:44:12 +08:00
libsodium cmake: Add support for test build 2018-10-20 12:07:24 +08:00
log cmake: make main a component again 2018-09-11 09:44:12 +08:00
lwip lwip: fix mbox thread-safe issue 2019-01-02 22:48:19 +08:00
mbedtls hwcrypto sha: Allow SHA contexts to be shared between tasks 2019-01-23 18:18:13 +08:00
mdns mdns: fixed crash on free undefined ptr after skipped strdup 2019-01-29 10:34:04 +01:00
micro-ecc cmake: make main a component again 2018-09-11 09:44:12 +08:00
mqtt mqtt: ssl mutual authentication example added per PR from github, corrected cmake build, updated per idf style 2018-10-30 08:04:09 +01:00
newlib newlib: Fix UT adjtime 2018-11-26 15:55:17 +11:00
nghttp cmake: make main a component again 2018-09-11 09:44:12 +08:00
nvs_flash cmake: Add support for test build 2018-10-20 12:07:24 +08:00
openssl cmake: make main a component again 2018-09-11 09:44:12 +08:00
partition_table cmake: Add support for test build 2018-10-20 12:07:24 +08:00
protobuf-c protobuf-c : Added Google's protocol buffer C library as sub-module 2018-10-02 19:07:28 +05:30
protocomm Protocomm : Use esp_http_server instead of http_server 2018-10-24 17:32:43 +05:30
pthread Merge branch 'feature/cmake-unit-test' into 'master' 2018-10-22 16:29:15 +08:00
sdmmc cmake: Add support for test build 2018-10-20 12:07:24 +08:00
smartconfig_ack cmake: make main a component again 2018-09-11 09:44:12 +08:00
soc Merge branch 'bugfix/init_memctl_v3.2' into 'release/v3.2' 2019-01-23 21:43:58 +08:00
spi_flash cmake: Add support for test build 2018-10-20 12:07:24 +08:00
spiffs spiffs: increase timeout in readdir test 2018-11-21 03:42:15 +00:00
tcp_transport Merge branch 'bugfix/esp_http_client_async_crash' into 'master' 2018-11-05 12:30:04 +08:00
tcpip_adapter mdns: fixed crashes on network changes 2018-10-24 12:03:41 +02:00
ulp ulp: fix passing ulp srcs due to cmake_args bug 2018-11-23 16:10:54 +08:00
vfs vfs: fix unregister removing top level VFS instead of nested 2019-01-23 16:28:48 +08:00
wear_levelling Version update from V1 to V2 now done in correct way. 2018-10-26 09:21:30 +03:00
wifi_provisioning Examples : Added provisioning examples, tests and client tool. 2018-10-02 19:07:28 +05:30
wpa_supplicant cmake: Add support for test build 2018-10-20 12:07:24 +08:00
xtensa-debug-module cmake: make main a component again 2018-09-11 09:44:12 +08:00