diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-19 18:00:31 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-19 18:00:31 +0200 |
commit | 587028ddd4136637e3b94a877ecceae4217dfe72 (patch) | |
tree | 4428ff1483f41a450363c0bb379014c58710d72d /eurephia_getsym.c | |
parent | 8f883490ce6ddfa8fe8f883817353b51000f886f (diff) | |
download | eurephia-587028ddd4136637e3b94a877ecceae4217dfe72.tar.gz eurephia-587028ddd4136637e3b94a877ecceae4217dfe72.tar.xz eurephia-587028ddd4136637e3b94a877ecceae4217dfe72.zip |
Improved code security. LOG_DEBUG statements are only compiled if DEBUG=1 is sent to make.
Since several parts of the code where LOG_DEBUG was used with eurephia_log(...)
contains security sensitive information (like logging password retrieved with
get_env(...)), all debug logging is now done via the DEBUG macro.
This macro will not produce any security relevant eurephia_log(...) statements
unless the source is compiled with -DENABLE_DEBUG. This is activated via
make by adding DEBUG=1 before the make targets. When not enabled, the
binaries will not do any debug logging at all.
Diffstat (limited to 'eurephia_getsym.c')
-rw-r--r-- | eurephia_getsym.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eurephia_getsym.c b/eurephia_getsym.c index 67fc227..fdf4cdc 100644 --- a/eurephia_getsym.c +++ b/eurephia_getsym.c @@ -33,7 +33,7 @@ void *eGetSym(eurephiaCTX *ctx, void *dlh, const char *symnam) return NULL; } - eurephia_log(ctx, LOG_DEBUG, 13, "Locating eDBlink function '%s'", symnam); + DEBUG(ctx, 13, "Locating eDBlink function '%s'", symnam); func = dlsym(dlh, symnam); if( func == NULL ) { eurephia_log(ctx, LOG_ERROR, 1, "Could not find needed '%s' function in eDBlink driver", symnam); |