mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-25 18:59:48 +00:00
ffe99c192d
A content-type attribute value or an eContentType that was not an OID was read as missing, which skipped the check that the two match. Such a CMS is now not read, and neither is one without an eContentType. A PDF signature's eContentType must also be data. With a content-type attribute this already follows from the checks on the attribute. Without one, a signature whose eContentType named another type could still validate as a signature of the document. It is now invalid. The PDF test now covers a wrong eContentType and a repeated content-type attribute, and the README says that a missing content-type attribute is read anyway, with a note.