tls: Support a null encryption flag on TLS socket abstraction

This commit is contained in:
Martin Willi
2014-04-01 14:28:55 +02:00
parent ddf5222096
commit 5313880261
5 changed files with 21 additions and 7 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ static bool make_connection(private_pt_tls_client_t *this)
return FALSE;
}
this->tls = tls_socket_create(FALSE, this->server, this->client, fd, NULL);
this->tls = tls_socket_create(FALSE, this->server, this->client, fd,
NULL, FALSE);
if (!this->tls)
{
close(fd);
+1 -1
View File
@@ -532,7 +532,7 @@ pt_tls_server_t *pt_tls_server_create(identification_t *server, int fd,
.destroy = _destroy,
},
.state = PT_TLS_SERVER_VERSION,
.tls = tls_socket_create(TRUE, server, NULL, fd, NULL),
.tls = tls_socket_create(TRUE, server, NULL, fd, NULL, FALSE),
.tnccs = (tls_t*)tnccs,
.auth = auth,
);