From 0196ad63d385bcf4382266268d5be074461d3739 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 5 Apr 2019 11:02:17 +0200 Subject: [PATCH] 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) --- crypto/conf/conf_mod.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.25.1