Hello all,
this is a patch related to correctly marking the end of the CLI command in the
error message in several places in the file src/ssl_ckch.c .
--
Miroslav ZagoracFrom f3d8570a7872f1be4fe0e6d20d278c9397813f21 Mon Sep 17 00:00:00 2001
From: Miroslav Zagorac
Date: Fri, 1 Sep 2023 22:23:27 +0200
Subject: [PATCH] MINOR: properly mark the end of the CLI command in error
messages
In several places in the file src/ssl_ckch.c, in the message about the
incorrect use of the CLI command, the end of that CLI command is not
correctly marked with the sign ' .
---
src/ssl_ckch.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c
index 341531d17..07a04aa18 100644
--- a/src/ssl_ckch.c
+++ b/src/ssl_ckch.c
@@ -2260,7 +2260,7 @@ static int cli_parse_commit_cert(char **args, char *payload, struct appctx *appc
return 1;
if (!*args[3])
- return cli_err(appctx, "'commit ssl cert expects a filename\n");
+ return cli_err(appctx, "'commit ssl cert' expects a filename\n");
/* The operations on the CKCH architecture are locked so we can
* manipulate ckch_store and ckch_inst */
@@ -2328,7 +2328,7 @@ static int cli_parse_set_cert(char **args, char *payload, struct appctx *appctx,
return 1;
if (!*args[3] || !payload)
- return cli_err(appctx, "'set ssl cert expects a filename and a certificate as a payload\n");
+ return cli_err(appctx, "'set ssl cert' expects a filename and a certificate as a payload\n");
/* The operations on the CKCH architecture are locked so we can
* manipulate ckch_store and ckch_inst */
@@ -2667,7 +2667,7 @@ static int cli_parse_set_cafile(char **args, char *payload, struct appctx *appct
add_cmd = 1;
if (!*args[3] || !payload)
- return cli_err(appctx, "'set ssl ca-file expects a filename and CAs as a payload\n");
+ return cli_err(appctx, "'set ssl ca-file' expects a filename and CAs as a payload\n");
/* The operations on the CKCH architecture are locked so we can
* manipulate ckch_store and ckch_inst */
@@ -2776,7 +2776,7 @@ static int cli_parse_commit_cafile(char **args, char *payload, struct appctx *ap
return 1;
if (!*args[3])
- return cli_err(appctx, "'commit ssl ca-file expects a filename\n");
+ return cli_err(appctx, "'commit ssl ca-file' expects a filename\n");
/* The operations on the CKCH architecture are locked so we can
* manipulate ckch_store and ckch_inst */
@@ -3368,7 +3368,7 @@ static int cli_parse_set_crlfile(char **args, char *payload, struct appctx *appc
return 1;
if (!*args[3] || !payload)
- return cli_err(appctx, "'set ssl crl-file expects a filename and CRLs as a payload\n");
+ return cli_err(appctx, "'set ssl crl-file' expects a filename and CRLs as a payload\n");
/* The operations on the CKCH architecture are locked so we can
* manipulate ckch_store and ckch_inst */
@@ -3471,7 +3471,7 @@ static int cli_parse_commit_crlfile(char **args, char *payload, struct appctx *a
return 1;
if (!*args[3])
- return cli_err(appctx, "'commit ssl ca-file expects a filename\n");
+ return cli_err(appctx, "'commit ssl ca-file' expects a filename\n");
/* The operations on the CKCH architecture are locked so we can
* manipulate ckch_store and ckch_inst */
--
2.42.0