mbedtls: Add support for a session cache
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 21 May 2018 12:02:44 +0000 (14:02 +0200)
committerJohn Crispin <john@phrozen.org>
Tue, 22 May 2018 18:37:16 +0000 (20:37 +0200)
commite8a14691313d72bac27f9060bc536cf2ad23256b
treefe743f143882b016715be4f6a58bab8154d66fc7
parent527e7002d0429465bd49c0c0d416ef22fbf5ae86
mbedtls: Add support for a session cache

This allows the client to reuse the settings from a previous session and
no full key exchange is needed.
The partially key exchange takes less than 0.1 seconds compared to over
a second needed for a full key exchange.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
ustream-mbedtls.c
ustream-mbedtls.h