tls: Support a maximum TLS version to negotiate using TLS socket abstraction
This commit is contained in:
1 parent
5313880261
commit
e15f64cc81
6 files changed
+9
-7
No files matched your search
+2
-2
@@ -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, TRUE);
|
||||
tls = tls_socket_create(FALSE, server, client, fd, cache, TLS_1_2, 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, TRUE);
|
||||
tls = tls_socket_create(TRUE, server, NULL, cfd, cache, TLS_1_2, TRUE);
|
||||
if (!tls)
|
||||
{
|
||||
close(fd);
|
||||
|
||||
Reference in new issue
Block a user