]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: Remove mention of ckch_store in error message of cli command
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 9 Jan 2023 11:02:49 +0000 (12:02 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 9 Jan 2023 14:43:41 +0000 (15:43 +0100)
When calling 'update ssl ocsp-response' with an unknown certificate file
name, the error message would mention a "ckch_store" which is an
internal structure unknown by users.

src/ssl_ocsp.c

index 73679cbd4786e9519d5ec3cae917f73e7394e27f..46dba88bd26a6abc8169535f8a8a17afdac607ac 100644 (file)
@@ -1255,7 +1255,7 @@ static int cli_parse_update_ocsp_response(char **args, char *payload, struct app
        ckch_store = ckchs_lookup(args[3]);
 
        if (!ckch_store) {
-               memprintf(&err, "%sCkch_store not found!\n", err ? err : "");
+               memprintf(&err, "%sUnknown certificate! 'update ssl ocsp-response' expects an already known certificate file name.\n", err ? err : "");
                errcode |= ERR_ALERT | ERR_FATAL;
                HA_SPIN_UNLOCK(CKCH_LOCK, &ckch_lock);
                goto end;