From: Richard Levitte Date: Fri, 5 Apr 2019 09:02:17 +0000 (+0200) Subject: Add a bit of tracing in the core conf module runner X-Git-Tag: openssl-3.0.0-alpha1~2221 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0196ad63d385bcf4382266268d5be074461d3739;p=oweals%2Fopenssl.git Add a bit of tracing in the core conf module runner Reviewed-by: Paul Dale Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/8680) --- diff --git a/crypto/conf/conf_mod.c b/crypto/conf/conf_mod.c index 3ad09a79a1..56b19467a2 100644 --- a/crypto/conf/conf_mod.c +++ b/crypto/conf/conf_mod.c @@ -14,6 +14,7 @@ #include "internal/conf.h" #include "internal/dso.h" #include +#include #define DSO_mod_init_name "OPENSSL_init" #define DSO_mod_finish_name "OPENSSL_finish" @@ -92,6 +93,7 @@ int CONF_modules_load(const CONF *cnf, const char *appname, return 1; } + OSSL_TRACE1(CONF, "Configuration in section %s\n", vsection); values = NCONF_get_section(cnf, vsection); if (!values) @@ -100,6 +102,8 @@ int CONF_modules_load(const CONF *cnf, const char *appname, for (i = 0; i < sk_CONF_VALUE_num(values); i++) { vl = sk_CONF_VALUE_value(values, i); ret = module_run(cnf, vl->name, vl->value, flags); + OSSL_TRACE3(CONF, "Running module %s (%s) returned %d\n", + vl->name, vl->value, ret); if (ret <= 0) if (!(flags & CONF_MFLAGS_IGNORE_ERRORS)) return ret;