Implemented TLS session resumption both as client and as server