ARC: give more detail with "bad signing-spec" message
authorJeremy Harris <jgh146exb@wizmail.org>
Sat, 24 Mar 2018 13:53:50 +0000 (13:53 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 24 Mar 2018 13:53:50 +0000 (13:53 +0000)
doc/doc-txt/experimental-spec.txt
src/src/arc.c

index 149598ee8934b5465983a5271cd9634a65688bb6..2ed6e358208a5f0790e39186dfcefd293b1a481f 100644 (file)
@@ -799,7 +799,8 @@ arc_sign = <admd-identifier> : <selector> : <privkey>
 An option on the smtp transport, which constructs and prepends to the message
 an ARC set of headers.  The textually-first Authentication-Results: header
 is used as a basis (you must have added one on entry to the ADMD).
 An option on the smtp transport, which constructs and prepends to the message
 an ARC set of headers.  The textually-first Authentication-Results: header
 is used as a basis (you must have added one on entry to the ADMD).
-Expanded; if unset, empty or forced-failure then no signing is done.
+Expanded as a whole; if unset, empty or forced-failure then no signing is done.
+If it is set, all three elements must be non-empty.
 
 
 
 
 
 
index f4ae096bc26731a6dbd15eb19dcb15392c59c75b..eb143b697486627119076503ddd74777d714056e 100644 (file)
@@ -1536,7 +1536,8 @@ selector = string_nextinlist(&signspec, &sep, NULL, 0);
 if (  !*identity | !*selector
    || !(privkey = string_nextinlist(&signspec, &sep, NULL, 0)) || !*privkey)
   {
 if (  !*identity | !*selector
    || !(privkey = string_nextinlist(&signspec, &sep, NULL, 0)) || !*privkey)
   {
-  log_write(0, LOG_MAIN|LOG_PANIC, "ARC: bad signing-specification");
+  log_write(0, LOG_MAIN|LOG_PANIC, "ARC: bad signing-specification (%s)",
+    !*identity ? "identity" : !*selector ? "selector" : "private-key");
   return NULL;
   }
 if (*privkey == '/' && !(privkey = expand_file_big_buffer(privkey)))
   return NULL;
   }
 if (*privkey == '/' && !(privkey = expand_file_big_buffer(privkey)))