OVMS3-idf/components/protocomm/src
Piyush Shah f677655fcb protocomm_httpd: Restart security session if request is received on a new session
This commit fixes a bug as well as changes a behaviour.

Bugfix: During softap/httpd based provisioning, if a session was closed
midway and a new one started, it would never proceed if the http server
assigns same socket number to the new session (which happens almost always).
Now, if a session is closed, using the http callbacks, the older session
data is cleared so that a new one can be created.

Behavioural change: If a client (mobile app particularly) does not use
persistent http session i.e. all provisioning communication on the same
socket, the provisioning may fail. Earlier, since the session context was
not getting cleared, even if the client closed a session and continued
on a new one, it would go through if the socket number assigned was same
(which happens almost always).

Ideally, from a security perspective, all communication related
to secure provisioning must happen on the same socket, and so, this
change is required.
2020-06-10 01:25:53 +05:30
..
common Protocomm : Added new APIs for opening and closing secure sessions 2019-04-16 13:50:01 +05:30
security Merge branch 'bugfix/protocomm_sec_mult_inst' into 'master' 2019-06-03 11:46:24 +08:00
simple_ble Rename Kconfig options (components/bt) 2019-05-21 09:09:01 +02:00
transports protocomm_httpd: Restart security session if request is received on a new session 2020-06-10 01:25:53 +05:30