tls: Introduce a generic TLS purpose that accepts NULL encryption ciphers

This commit is contained in:
Martin Willi
2014-04-01 14:28:55 +02:00
parent ac5717c9e9
commit ddf5222096
4 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -105,7 +105,7 @@ static int run_client(host_t *host, identification_t *server,
close(fd);
return 1;
}
tls = tls_socket_create(FALSE, server, client, fd, cache);
tls = tls_socket_create(FALSE, server, client, fd, cache, TRUE);
if (!tls)
{
close(fd);
@@ -162,7 +162,7 @@ static int serve(host_t *host, identification_t *server,
}
DBG1(DBG_TLS, "%#H connected", host);
tls = tls_socket_create(TRUE, server, NULL, cfd, cache);
tls = tls_socket_create(TRUE, server, NULL, cfd, cache, TRUE);
if (!tls)
{
close(fd);