tls: Support a null encryption flag on TLS socket abstraction
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user