]> granicus.if.org Git - file/commitdiff
Add more stream identifiers (Guy Helmer). XXX: perhaps remove the other
authorChristos Zoulas <christos@zoulas.com>
Mon, 17 Oct 2016 15:14:35 +0000 (15:14 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 17 Oct 2016 15:14:35 +0000 (15:14 +0000)
name2mime, etc. tables?

src/readcdf.c

index efdb68c1c4eed90b60f8d4ccccc3d6f7739eec00..b7fe7e783e418481b2484bbac3122f2e07ef11e2 100644 (file)
@@ -26,7 +26,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: readcdf.c,v 1.57 2016/05/03 16:08:49 christos Exp $")
+FILE_RCSID("@(#)$File: readcdf.c,v 1.58 2016/06/20 16:08:14 christos Exp $")
 #endif
 
 #include <assert.h>
@@ -388,10 +388,13 @@ private struct sinfo {
 } sectioninfo[] = {
        { "Encrypted", "encrypted", 
                {
-                       "EncryptedPackage", NULL, NULL, NULL, NULL,
+                       "EncryptedPackage", "EncryptedSummary",
+                       NULL, NULL, NULL,
                },
                {
-                       CDF_DIR_TYPE_USER_STREAM, 0, 0, 0, 0,
+                       CDF_DIR_TYPE_USER_STREAM,
+                       CDF_DIR_TYPE_USER_STREAM,
+                       0, 0, 0,
 
                },
        },
@@ -412,6 +415,46 @@ private struct sinfo {
                        0, 0, 0, 0
                },
        },
+       { "Microsoft Excel", "application/vnd.ms-excel",
+               {
+                       "Book", "WorkBook", NULL, NULL, NULL,
+               },
+               {
+                       CDF_DIR_TYPE_USER_STREAM,
+                       CDF_DIR_TYPE_USER_STREAM,
+                       0, 0, 0,
+               },
+       },
+       { "Microsoft Word", "application/msword",
+               {
+                       "WordDocument", NULL, NULL, NULL, NULL,
+               },
+               {
+                       CDF_DIR_TYPE_USER_STREAM,
+                       0, 0, 0, 0,
+               },
+       },
+       { "Microsoft PowerPoint", "application/vnd.ms-powerpoint",
+               {
+                       "PowerPoint", NULL, NULL, NULL, NULL,
+               },
+               {
+                       CDF_DIR_TYPE_USER_STREAM,
+                       0, 0, 0, 0,
+               },
+       },
+       { "Microsoft Outlook Message", "application/vnd.ms-outlook",
+               {
+                       "__properties_version1.0",
+                       "__recpi_version1.0_#00000000",
+                       NULL, NULL, NULL,
+               },
+               {
+                       CDF_DIR_TYPE_USER_STREAM,
+                       CDF_DIR_TYPE_USER_STORAGE,
+                       0, 0, 0,
+               },
+       },
 };
 
 private int