Relaxed canonicalization for empty bodies is incorrect

Bug #1727319 reported by Matthew Palmer on 2017-10-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dkimpy
High
Unassigned

Bug Description

When canonicalization occurs on an empty body (Null input or only CRLFs) instead of producing an empty string for relaxed mode it instead produces a CRLF.

RFC 6376 states in section 3.4.4 (https://tools.ietf.org/html/rfc6376#section-3.4.4) for relaxed body canonicalization that an empty body canonicalizes to a null value. Only simple mode (section 3.4.3) should canonicalize to a single CRLF.

Matthew Palmer (mattpalmer) wrote :

Submitted a merge request to resolve this + add additional tests

Changed in dkimpy:
status: New → Triaged
importance: Undecided → High
milestone: none → 0.7.0
Changed in dkimpy:
status: Triaged → Fix Committed
Scott Kitterman (kitterman) wrote :

Fixed in 0.7.0.

Changed in dkimpy:
milestone: 0.7.0 → none
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers