From: Dr. David von Oheimb Date: Thu, 12 Nov 2020 19:35:50 +0000 (+0100) Subject: apps/cmp.c: Add diagnostics on config file section(s) used X-Git-Tag: openssl-3.0.0-alpha9~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e7bc901bf4675b5fb05dfdd98647ec141781f45;p=thirdparty%2Fopenssl.git apps/cmp.c: Add diagnostics on config file section(s) used Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/13409) --- diff --git a/apps/cmp.c b/apps/cmp.c index c3efdfbbe99..cef625b68f1 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;