diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2020-09-06 09:49:12 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2020-09-06 09:49:12 +0000 |
commit | 65679535f20de098a8533065985e2dcbfbd4b982 (patch) | |
tree | c3de01fdd8b3a7c14a5afa13e857ea7afacdbb21 /usr.bin | |
parent | ac6163af4918acc9131fb5d807ae7b67d52e8e02 (diff) |
On tls_config_set_protocols() failure, include the output of
tls_config_error() in the errx() message.
discussed with jsing
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ftp/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
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'", |