]> granicus.if.org Git - file/commitdiff
PR/417: Add CBOR files
authorChristos Zoulas <christos@zoulas.com>
Wed, 28 Jan 2015 01:05:21 +0000 (01:05 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 28 Jan 2015 01:05:21 +0000 (01:05 +0000)
magic/Magdir/cbor [new file with mode: 0644]
magic/Makefile.am

diff --git a/magic/Magdir/cbor b/magic/Magdir/cbor
new file mode 100644 (file)
index 0000000..c780dc6
--- /dev/null
@@ -0,0 +1,21 @@
+
+#------------------------------------------------------------------------------
+# $File: cbor,v 1.1 2015/01/28 01:05:21 christos Exp $
+# cbor:  file(1) magic for CBOR files as defined in RFC 7049
+
+0      string  \xd9\xd9\xf7 Concise Binary Object Representation (CBOR) container
+!:mime application/cbor
+>3     ubyte   <0x20   (positive integer)
+>3     ubyte   <0x40
+>>3    ubyte   >0x1f   (negative integer)
+>3     ubyte   <0x60
+>>3    ubyte   >0x3f   (byte string)
+>3     ubyte   <0x80
+>>3    ubyte   >0x5f   (text string)
+>3     ubyte   <0xa0
+>3     ubyte   >0x7f   (array)
+>3     ubyte   <0xc0
+>>3    ubyte   >0x9f   (map)
+>3     ubyte   <0xe0
+>>3    ubyte   >0xbf   (tagged)
+>3     ubyte   >0xdf   (other)
index 7bc327d0ffa23bd1a66026739cc364b25d30e358..3ee62e10160c28eba415c4a0bfd207cee3bdb8ae 100644 (file)
@@ -1,5 +1,5 @@
 #
-# $File: Makefile.am,v 1.101 2014/12/12 16:48:39 christos Exp $
+# $File: Makefile.am,v 1.102 2015/01/28 01:05:21 christos Exp $
 #
 MAGIC_FRAGMENT_BASE = Magdir
 MAGIC_DIR = $(top_srcdir)/magic
@@ -42,6 +42,7 @@ $(MAGIC_FRAGMENT_DIR)/c-lang \
 $(MAGIC_FRAGMENT_DIR)/c64 \
 $(MAGIC_FRAGMENT_DIR)/cad \
 $(MAGIC_FRAGMENT_DIR)/cafebabe \
+$(MAGIC_FRAGMENT_DIR)/cbor \
 $(MAGIC_FRAGMENT_DIR)/cddb \
 $(MAGIC_FRAGMENT_DIR)/chord \
 $(MAGIC_FRAGMENT_DIR)/cisco \