aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/tls_test.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-04-01 14:53:28 +0200
committerMartin Willi <martin@revosec.ch>2014-04-01 14:53:28 +0200
commitb87f7840bc090de5b76328c4c12dfb7e27e73f7e (patch)
treee50a2bad6ed7edbd0151516ff7220de44c25d6eb /scripts/tls_test.c
parent96e3142c39a69cfc99fc808f2df3f9d409b05357 (diff)
parent5ba9f734577321f0445ee38625cdea075d1bb9cf (diff)
downloadstrongswan-b87f7840bc090de5b76328c4c12dfb7e27e73f7e.tar.bz2
strongswan-b87f7840bc090de5b76328c4c12dfb7e27e73f7e.tar.xz
Merge branch 'tls-unit-tests'
Add some initial unit-tests to libtls, testing all supported cipher suites against self, both with and without client authentication, for all supported TLS versions.
Diffstat (limited to 'scripts/tls_test.c')
-rw-r--r--scripts/tls_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/tls_test.c b/scripts/tls_test.c
index 7ec477aae..84a32f96f 100644
--- a/scripts/tls_test.c
+++ b/scripts/tls_test.c
@@ -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, 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);
+ tls = tls_socket_create(TRUE, server, NULL, cfd, cache, TLS_1_2, TRUE);
if (!tls)
{
close(fd);