This is an automated email from the ASF dual-hosted git repository. nick pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tika.git
commit 75c2ff5686a70c0fb15c4b52534c1be09669af1b Author: Nick Burch <[email protected]> AuthorDate: Tue Sep 29 16:51:19 2020 +0100 Make the DER private key mostly-match a bit more specific --- .../main/resources/org/apache/tika/mime/tika-mimetypes.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml index 2c4a5e5..404e462 100644 --- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml +++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml @@ -4727,12 +4727,13 @@ <mime-type type="application/x-x509-key;format=der"> <sub-class-of type="application/x-x509-key"/> <!-- These are just a bunch of magic integers as defined by the key format... --> - <!-- Always seem to have an integer=01 as their first entry, check for that --> + <!-- Always seem to have a version integer as their first entry, --> + <!-- normally 00, 01 or 02, check for that --> <magic priority="40"> - <match value="0x3081FF0201" type="string" - mask="0xFFFF00FFFF" offset="0"/> - <match value="0x3082FFFF0201" type="string" - mask="0xFFFF0000FFFF" offset="0"/> + <match value="0x3081FF020100" type="string" + mask="0xFFFF00FFFFFC" offset="0"/> + <match value="0x3082FFFF020100" type="string" + mask="0xFFFF0000FFFFFC" offset="0"/> </magic> </mime-type>
