diff options
Diffstat (limited to 'src/src/dkim.c')
-rw-r--r-- | src/src/dkim.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/src/dkim.c b/src/src/dkim.c index db2eb4948..504595815 100644 --- a/src/src/dkim.c +++ b/src/src/dkim.c @@ -70,9 +70,11 @@ if (dkim_verify_ctx) /* Create new context */ dkim_verify_ctx = pdkim_init_verify(PDKIM_INPUT_SMTP, &dkim_exim_query_dns_txt); - -if ((dkim_collect_input = !!dkim_verify_ctx)) +dkim_collect_input = !!dkim_verify_ctx; +#ifdef PDKIM_DEBUG +if (dkim_collect_input) pdkim_set_debug_stream(dkim_verify_ctx, debug_file); +#endif } @@ -565,7 +567,9 @@ while ((dkim_signing_domain = string_nextinlist(&dkim_domain, &sep, (char *) dkim_signing_domain, (char *) dkim_signing_selector, (char *) dkim_private_key_expanded); +#ifdef PDKIM_DEBUG pdkim_set_debug_stream(ctx, debug_file); +#endif pdkim_set_optional(ctx, (char *) dkim_sign_headers_expanded, NULL, |