summaryrefslogtreecommitdiffstats
path: root/contrib/file/magic/Magdir/gnu
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-06-26 06:03:39 +0000
committerdelphij <delphij@FreeBSD.org>2014-06-26 06:03:39 +0000
commitcd5514ba3b318b16aa00b1048bf9160a9f28fb35 (patch)
tree5b4f7850752944df750e0c678951b78d9484b67e /contrib/file/magic/Magdir/gnu
parent8b39363d0d5f3d274de63dac41aaba59cdf00cdb (diff)
parent02573f2d7154bbe159ba99728d5db9be8a29bd9b (diff)
downloadFreeBSD-src-cd5514ba3b318b16aa00b1048bf9160a9f28fb35.zip
FreeBSD-src-cd5514ba3b318b16aa00b1048bf9160a9f28fb35.tar.gz
MFV r267843: update file/libmagic to 5.19.
MFC after: 2 weeks
Diffstat (limited to 'contrib/file/magic/Magdir/gnu')
-rw-r--r--contrib/file/magic/Magdir/gnu83
1 files changed, 83 insertions, 0 deletions
diff --git a/contrib/file/magic/Magdir/gnu b/contrib/file/magic/Magdir/gnu
new file mode 100644
index 0000000..e4a0a16
--- /dev/null
+++ b/contrib/file/magic/Magdir/gnu
@@ -0,0 +1,83 @@
+
+#------------------------------------------------------------------------------
+# $File: gnu,v 1.15 2014/02/06 14:21:02 christos Exp $
+# gnu: file(1) magic for various GNU tools
+#
+# GNU nlsutils message catalog file format
+#
+# GNU message catalog (.mo and .gmo files)
+
+0 string \336\22\4\225 GNU message catalog (little endian),
+>6 leshort x revision %d.
+>4 leshort >0 \b%d,
+>>8 lelong x %d messages,
+>>36 lelong x %d sysdep messages
+>4 leshort =0 \b%d,
+>>8 lelong x %d messages
+
+0 string \225\4\22\336 GNU message catalog (big endian),
+>4 beshort x revision %d.
+>6 beshort >0 \b%d,
+>>8 belong x %d messages,
+>>36 belong x %d sysdep messages
+>6 beshort =0 \b%d,
+>>8 belong x %d messages
+
+
+# GnuPG
+# The format is very similar to pgp
+0 string \001gpg GPG key trust database
+>4 byte x version %d
+# Note: magic.mime had 0x8501 for the next line instead of 0x8502
+0 beshort 0x8502 GPG encrypted data
+!:mime text/PGP # encoding: data
+
+# This magic is not particularly good, as the keyrings don't have true
+# magic. Nevertheless, it covers many keyrings.
+0 beshort 0x9901 GPG key public ring
+!:mime application/x-gnupg-keyring
+
+# Symmetric encryption
+0 leshort 0x0d8c
+>4 leshort 0x0203
+>>2 leshort 0x0204 GPG symmetrically encrypted data (3DES cipher)
+>>2 leshort 0x0304 GPG symmetrically encrypted data (CAST5 cipher)
+>>2 leshort 0x0404 GPG symmetrically encrypted data (BLOWFISH cipher)
+>>2 leshort 0x0704 GPG symmetrically encrypted data (AES cipher)
+>>2 leshort 0x0804 GPG symmetrically encrypted data (AES192 cipher)
+>>2 leshort 0x0904 GPG symmetrically encrypted data (AES256 cipher)
+>>2 leshort 0x0a04 GPG symmetrically encrypted data (TWOFISH cipher)
+>>2 leshort 0x0b04 GPG symmetrically encrypted data (CAMELLIA128 cipher)
+>>2 leshort 0x0c04 GPG symmetrically encrypted data (CAMELLIA192 cipher)
+>>2 leshort 0x0d04 GPG symmetrically encrypted data (CAMELLIA256 cipher)
+
+
+# GnuPG Keybox file
+# <http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=kbx/keybox-blob.c;hb=HEAD>
+# From: Philipp Hahn <hahn@univention.de>
+0 belong 32
+>4 byte 1
+>>8 string KBXf GPG keybox database
+>>>5 byte 1 version %d
+>>>16 bedate x \b, created-at %s
+>>>20 bedate x \b, last-maintained %s
+
+
+# Gnumeric spreadsheet
+# This entry is only semi-helpful, as Gnumeric compresses its files, so
+# they will ordinarily reported as "compressed", but at least -z helps
+39 string =<gmr:Workbook Gnumeric spreadsheet
+
+# From: James Youngman <jay@gnu.org>
+# gnu find magic
+0 string \0LOCATE GNU findutils locate database data
+>7 string >\0 \b, format %s
+>7 string 02 \b (frcode)
+
+# Files produced by GNU gettext
+0 long 0xDE120495 GNU-format message catalog data
+0 long 0x950412DE GNU-format message catalog data
+
+# gettext message catalogue
+0 regex \^msgid\ GNU gettext message catalogue text
+!:mime text/x-po
OpenPOWER on IntegriCloud