tls-socket: Allow configuring both minimum and maximum TLS versions
This commit is contained in:
+3
-2
@@ -106,7 +106,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, TLS_1_0,
|
||||
TLS_1_3, TRUE);
|
||||
if (!tls)
|
||||
{
|
||||
@@ -164,7 +164,8 @@ 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_1_2, TRUE);
|
||||
tls = tls_socket_create(TRUE, server, NULL, cfd, cache, TLS_1_0,
|
||||
TLS_1_2, TRUE);
|
||||
if (!tls)
|
||||
{
|
||||
close(fd);
|
||||
|
||||
Reference in New Issue
Block a user