Commits


Put pklen and tmp in #ifdef HAVE_ED25519


pkrawlen should only be used to test the length, not if the tag might be there or not


Apparently I broke RSA in previous commit


Add support for ed25519


Domains are case insensitive. Keep that in mind when comparing i- and d-tag


osmtpd_ltok_skip_sig_h_tag_value can be further out than end, because a header can contain a ';'


FWS after h=-tag value could lead to a end mismatch. Use osmtpd_ltok_skip_sig_h_tag_value for checking and original code for copying data


Use osmtpd_ltok_skip_sig_i_tag_value() instead of parsing it manually where not needed


osmtpd_ltok_skip_domain has obs-domain, which gives the wrong result. Use the appropriate osmtpd_ltok_skip_sig_d_tag_value


signature pkey also needs to be freed after we're done with it.


Move ar_data free to the end of the fuction, so that failed queries also get released


Free ar_data, as suggested by asr_run(3)


semicolon is part of qp-section/safe-char. Ignore it if we overflow


header->buf also needs to be freed


Add DKIM_UNKNOWN check for whitelines backlog as well


Fix calculating subdomain matching for i tag


Fix type-O


rewrite dkim_body_parse, so that we don't copy the line. This means that we don't limit the line length anymore, but might cost a little extra computing overhead. Let's see how bad this can get.


And of course I tested with the wrong file. v=-tags should also increment key, similar to the other tags.


Fix syntax validator in t=-tag (used wrong function) While here fix unfold some line wrappings no longer needed


For the key h tag we should skip over the alg, not the entire value when inside the loop. While here reorder some line folding since the mheader->ltok API name change.


Put v=-tag handling for key into switch. Shorter and better legibility


Always compile test failure issue 1000000


Add more error checking in key parsing


Shrink unknown key tag parsing, similar to what happened in unknown sig tag