Skip to content

Commit

Permalink
TIKA-1821 Support for 1 and 3 byte length PKCS7 DER encoded magic (ne…
Browse files Browse the repository at this point in the history
…eds neater way, to follow)

git-svn-id: https://svn.apache.org/repos/asf/tika/trunk@1723579 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Gagravarr committed Jan 7, 2016
1 parent 61671f5 commit 784c0a4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,12 @@
<glob pattern="*.p7s"/>
<magic priority="50">
<match value="-----BEGIN PKCS7" type="string" offset="0"/>
<match value="0x3083FFFFFF06092a864886f70d0107FFa0" type="string"
mask="0xFFFF000000FFFFFFFFFFFFFFFFFFFF00FF" offset="0"/>
<match value="0x3082FFFF06092a864886f70d0107FFa0" type="string"
mask="0xFFFF0000FFFFFFFFFFFFFFFFFFFF00FF" offset="0"/>
<match value="0x3081FF06092a864886f70d0107FFa0" type="string"
mask="0xFFFF00FFFFFFFFFFFFFFFFFFFF00FF" offset="0"/>
<match value="0x308006092a864886f70d0107FFa0" type="string"
mask="0xFFFFFFFFFFFFFFFFFFFFFFFF00FF" offset="0"/>
</magic>
Expand Down

0 comments on commit 784c0a4

Please sign in to comment.