]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
apps/cmp.c: Add diagnostics on config file section(s) used
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Thu, 12 Nov 2020 19:35:50 +0000 (20:35 +0100)
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>
Fri, 20 Nov 2020 12:36:30 +0000 (13:36 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13409)

apps/cmp.c

index c3efdfbbe9990731b6d1f755182d0c648218ce5d..cef625b68f15d960c2a16bfb0836ba3cfa0ffe89 100644 (file)
@@ -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;