Use smtp_write_mail_and_rcpt_cmds() for verify callout
[exim.git] / src / src / dkim.c
index 3fa11c80075b8a23b4d25892fe5f5045b807b31c..cc103c2898a61fe8a7c327b6844e39b85572ff66 100644 (file)
@@ -129,7 +129,7 @@ dkim_signatures = NULL;
 
 /* If we have arrived here with dkim_collect_input == FALSE, it
 means there was a processing error somewhere along the way.
-Log the incident and disable futher verification. */
+Log the incident and disable further verification. */
 
 if (!dkim_collect_input)
   {
@@ -607,11 +607,14 @@ while ((dkim_signing_domain = string_nextinlist(&dkim_domain, &sep,
     dkim_private_key_expanded = big_buffer;
     }
 
-  ctx = pdkim_init_sign( CS dkim_signing_domain,
-                        CS dkim_signing_selector,
-                        CS dkim_private_key_expanded,
-                        PDKIM_ALGO_RSA_SHA256,
-                        dkim->dot_stuffed);
+  ctx = pdkim_init_sign(CS dkim_signing_domain,
+                       CS dkim_signing_selector,
+                       CS dkim_private_key_expanded,
+                       PDKIM_ALGO_RSA_SHA256,
+                       dkim->dot_stuffed,
+                       &dkim_exim_query_dns_txt
+                       );
+  dkim_private_key_expanded[0] = '\0';
   pdkim_set_optional(ctx,
                      CS dkim_sign_headers_expanded,
                      NULL,