summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/main.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-02-12 04:23:18 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-02-12 04:23:18 +0000
commite3213d47a875fe9ed6557bf4728158ae27445eec (patch)
treea21f2f90bbc069c7db9439dab321edc762ffafc2 /usr.bin/ftp/main.c
parentd1e3221766c47552c8a90ce9ce84ec6e354acfb1 (diff)
Change TLS_PROTOCOLS_DEFAULT to be TLSv1.2 only. Add a TLS_PROTOCOLS_ALL
that includes all currently supported protocols (TLSv1.0, TLSv1.1 and TLSv1.2). Change all users of libtls to use TLS_PROTOCOLS_ALL so that they maintain existing behaviour. Discussed with tedu@ and reyk@.
Diffstat (limited to 'usr.bin/ftp/main.c')
-rw-r--r--usr.bin/ftp/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index 5e2595d4dbf..ae333c0479f 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.97 2015/02/09 08:24:21 tedu Exp $ */
+/* $OpenBSD: main.c,v 1.98 2015/02/12 04:23:17 jsing Exp $ */
/* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */
/*
@@ -312,6 +312,8 @@ main(volatile int argc, char *argv[])
tls_config = tls_config_new();
if (tls_config == NULL)
errx(1, "tls config failed");
+ tls_config_set_protocols(tls_config,
+ TLS_PROTOCOLS_ALL);
}
cp = optarg;