From 0e7bc901bf4675b5fb05dfdd98647ec141781f45 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Thu, 12 Nov 2020 20:35:50 +0100 Subject: [PATCH] apps/cmp.c: Add diagnostics on config file section(s) used Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/13409) --- apps/cmp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/cmp.c b/apps/cmp.c index c3efdfbbe9..cef625b68f 100644 --- a/apps/cmp.c +++ b/apps/cmp.c @@ -2660,10 +2660,10 @@ int cmp_main(int argc, char **argv) /* read default values for options from config file */ configfile = opt_config != NULL ? opt_config : default_config_file; - if (configfile && configfile[0] != '\0' /* non-empty string */ - && (configfile != default_config_file - || access(configfile, F_OK) != -1)) { - CMP_info1("using OpenSSL configuration file '%s'", configfile); + if (configfile != NULL && configfile[0] != '\0' /* non-empty string */ + && (configfile != default_config_file || access(configfile, F_OK) != -1)) { + CMP_info2("using section(s) '%s' of OpenSSL configuration file '%s'", + opt_section, configfile); conf = app_load_config(configfile); if (conf == NULL) { goto err; -- 2.39.2