From ed44243de7f23f3079cf733c549eeb76e952c1b9 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Thu, 21 Nov 2019 16:41:07 +0100 Subject: [PATCH] MINOR: ssl/cli: display warning during 'commit ssl cert' Display the warnings on the CLI during a commit of the certificates. --- src/ssl_sock.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 27b9e097d..6513760ac 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -10200,7 +10200,10 @@ static int cli_io_handler_commit_cert(struct appctx *appctx) } end: - chunk_appendf(trash, "\nSuccess!\n"); + chunk_appendf(trash, "\n"); + if (errcode & ERR_WARN) + chunk_appendf(trash, err); + chunk_appendf(trash, "Success!\n"); if (ci_putchk(si_ic(si), trash) == -1) si_rx_room_blk(si); free_trash_chunk(trash);