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

This commit is contained in:
Martin Willi committed 2014-04-01 14:28:55 +02:00
1 parent ac5717c9e9
commit ddf5222096
4 files changed
+8 -2

No files matched your search

+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);