diff options
author | Martin Willi <martin@revosec.ch> | 2014-03-25 10:12:51 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-04-01 14:28:55 +0200 |
commit | e15f64cc81818f3769b91b2372559a64f0b92b7b (patch) | |
tree | 456b0adf9106a10292b28bca48cd01bed3927738 /scripts | |
parent | 5313880261fe271ac5b334ccacf92d6253efaf3d (diff) | |
download | strongswan-e15f64cc81818f3769b91b2372559a64f0b92b7b.tar.bz2 strongswan-e15f64cc81818f3769b91b2372559a64f0b92b7b.tar.xz |
tls: Support a maximum TLS version to negotiate using TLS socket abstraction
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/tls_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/tls_test.c b/scripts/tls_test.c index 3d47f6f7a..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, 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); |