From 65679535f20de098a8533065985e2dcbfbd4b982 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Sun, 6 Sep 2020 09:49:12 +0000 Subject: On tls_config_set_protocols() failure, include the output of tls_config_error() in the errx() message. discussed with jsing --- usr.bin/ftp/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/ftp') diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index 2f6dd3f748b..2d2f66b0812 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.134 2020/09/06 09:03:13 tb Exp $ */ +/* $OpenBSD: main.c,v 1.135 2020/09/06 09:49:11 tb Exp $ */ /* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */ /* @@ -288,7 +288,8 @@ process_ssl_options(char *cp) if (tls_config_parse_protocols(&protocols, str) != 0) errx(1, "failed to parse TLS protocols"); if (tls_config_set_protocols(tls_config, protocols) != 0) - errx(1, "failed to set TLS protocols"); + errx(1, "failed to set TLS protocols: %s", + tls_config_error(tls_config)); break; default: errx(1, "unknown -S suboption `%s'", -- cgit v1.2.3