]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl/cli: display warning during 'commit ssl cert'
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 21 Nov 2019 15:41:07 +0000 (16:41 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 21 Nov 2019 16:48:11 +0000 (17:48 +0100)
Display the warnings on the CLI during a commit of the certificates.

src/ssl_sock.c

index 27b9e097dd5938099f3100c2fd7845c15a211f21..6513760ace04f164f83a41a12eaeafb69bdd0ed3 100644 (file)
@@ -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);