Menu

#36 Overloaded semantics of DK_STAT_SYNTAX

v0.4.1
closed-fixed
5
2007-04-10
2006-08-10
No

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.

Discussion

  • Anonymous

    Anonymous - 2007-03-08
    • assigned_to: nobody --> sm-msk
     
  • Anonymous

    Anonymous - 2007-03-12

    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.

     
  • Anonymous

    Anonymous - 2007-03-15

    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.

     
  • Anonymous

    Anonymous - 2007-04-10

    Logged In: YES
    user_id=1048957
    Originator: NO

    v0.5.0 released, containing dk_geterror(); dk-filter now makes use of this

     
  • Anonymous

    Anonymous - 2007-04-10
    • status: open --> closed-fixed
     

Log in to post a comment.