OVMS3-idf/components
Ondřej Hruška a10fc02dd9 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
2018-11-19 04:00:21 +00:00
..
app_trace cmake: Add support for test build 2018-10-20 12:07:24 +08:00
app_update cmake: Add support for test build 2018-10-20 12:07:24 +08:00
asio cmake: make main a component again 2018-09-11 09:44:12 +08:00
aws_iot Add checks to for CONFIG_MBEDTLS_SSL_ALPN 2018-11-08 15:57:13 +05:30
bootloader CMake : Secure Boot support added 2018-11-06 17:09:55 +05:30
bootloader_support CMake : Secure Boot support added 2018-11-06 17:09:55 +05:30
bt Fix two bugs when disable bluetooth controller 2018-11-16 02:42:38 +00: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 Merge branch 'feat/psram_support_hspi' into 'master' 2018-11-06 20:34:41 +08:00
esp-tls Merge branch 'bugfix/http_literal_caseinsensitive' into 'master' 2018-11-12 17:03:06 +08:00
esp32 Merge branch 'bugfix/wifi_sta_sniffer_phy_config_bug' into 'master' 2018-11-19 10:11:23 +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 Merge branch 'bugfix/http_literal_caseinsensitive' into 'master' 2018-11-12 17:03:06 +08:00
esp_http_server esp_http_server improvements to allow adding transport layer encryption 2018-11-19 04:00:21 +00:00
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 esp32: Adds logging level to core dump script 2018-11-15 06:13:48 +00:00
esptool_py CMake : Secure Boot support added 2018-11-06 17:09:55 +05:30
ethernet ethernet: multi-call failure in esp_eth_init 2018-11-13 16:38:45 +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-16 11:19:01 +00:00
freemodbus examples: freemodbus port slave basic implementation 2018-10-17 12:47:12 +02:00
freertos esp32: Replaces magic numbers with CRC for core dump in flash 2018-11-15 06:13:48 +00:00
heap heap: Compile heap_task_info.c conditionally on CONFIG_HEAP_TASK_TRACKING in heap CMakeLists.txt 2018-11-08 15:57:11 +05:30
idf_test Merge branch 'test/fix_bug_of_scan_interval_and_windows' into 'master' 2018-11-05 11:00:58 +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 Merge branch 'bugfix/tw27096_fix_lwip_mbox_free_crash' into 'master' 2018-11-15 10:31:35 +08:00
mbedtls aes/sha/mpi: Bugfix a use of shared registers. 2018-11-05 04:22:47 +00:00
mdns mdns: sending search packets also in probing and announcing state 2018-11-16 07:22:29 +00: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-16 04:11:55 +00: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 : Secure Boot support added 2018-11-06 17:09:55 +05:30
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 'feature/build_system_multi_target' into 'master' 2018-11-12 15:30:36 +08:00
spi_flash esp32: Fixes freezing core dump process when flash write address checks are enabled 2018-11-15 06:13:48 +00:00
spiffs spiffs: increase timeout in readdir test 2018-11-13 11:41:19 +08: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 cmake: Add support for test build 2018-10-20 12:07:24 +08:00
vfs VFS: Implement utime() 2018-11-05 09:54:01 +01: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