Split session functionality of TlsClient out into TlsSession.

This abstraction allows the session code to be shared between the TLS client and (upcoming) server code.

Session management is no longer implemented in TlsClient so the HttpClient was updated to free and create sessions as needed. No test changes were required for HttpClient so the functionality should be unchanged.

Mechanical changes to the TLS tests were required to use TlsSession where appropriate rather than TlsClient. There should be no change in functionality other than how sessions are managed, i.e. using tlsClientOpen()/tlsSessionFree() rather than just tlsClientOpen().
This commit is contained in:
David Steele
2020-04-14 15:02:18 -04:00
parent c9481bb95f
commit 9f2d647bad
14 changed files with 541 additions and 412 deletions
+2 -1
View File
@@ -239,11 +239,12 @@ unit:
# ----------------------------------------------------------------------------------------------------------------------------
- name: io-tls
total: 5
total: 4
containerReq: true
coverage:
common/io/tls/client: full
common/io/tls/session: full
common/io/socket/client: full
common/io/socket/common: full
common/io/socket/session: full