In libdk/dk.c there are 11 different types of
failures, each resulting in status DK_STAT_SYNTAX,
yielding a not-too-helpful and all-too-familiar:
"syntax error in signature data"
(including a case of a missing From: header field
while signing because of mistakenly including a "from"
in option -o, which took way too long to diagnose)
For the sake of maintainability and troubleshooting,
please change the code to report cause of failures
more specifically.
Logged In: YES
user_id=1048957
Originator: NO
libdkim is much more detailed about each use of overloaded return codes. I'm planning to port that facility back into libdk as well.
Logged In: YES
user_id=1048957
Originator: NO
Done for the next version. There's a new API function called dk_geterror() which can be used to extract a more detailed error message from libdk when an error code is returned by one of the main libdk functions.
Logged In: YES
user_id=1048957
Originator: NO
v0.5.0 released, containing dk_geterror(); dk-filter now makes use of this