MINOR: ssl/cli: display warning during 'commit ssl cert'
Display the warnings on the CLI during a commit of the certificates.
diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index 27b9e09..6513760 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -10200,7 +10200,10 @@
}
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);