Implemented TLS session resumption both as client and as server
This commit is contained in:
@@ -193,7 +193,7 @@ METHOD(tls_socket_t, destroy, void,
|
||||
* See header
|
||||
*/
|
||||
tls_socket_t *tls_socket_create(bool is_server, identification_t *server,
|
||||
identification_t *peer, int fd)
|
||||
identification_t *peer, int fd, tls_cache_t *cache)
|
||||
{
|
||||
private_tls_socket_t *this;
|
||||
|
||||
@@ -215,7 +215,7 @@ tls_socket_t *tls_socket_create(bool is_server, identification_t *server,
|
||||
);
|
||||
|
||||
this->tls = tls_create(is_server, server, peer, TLS_PURPOSE_GENERIC,
|
||||
&this->app.application);
|
||||
&this->app.application, cache);
|
||||
if (!this->tls)
|
||||
{
|
||||
free(this);
|
||||
|
||||
Reference in New Issue
Block a user