diff options
author | Christos Zoulas <christos@zoulas.com> | 2016-10-17 15:14:35 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2016-10-17 15:14:35 +0000 |
commit | a8a19a1909d9df1099999c1172cec2b8d16e48f8 (patch) | |
tree | adfe99e2e50cbf3704987cfc5cab900a76e8604a /src/readcdf.c | |
parent | f4dccd016c3d9640e850db0d054ea2f4a687709e (diff) | |
download | file-git-a8a19a1909d9df1099999c1172cec2b8d16e48f8.tar.gz |
Add more stream identifiers (Guy Helmer). XXX: perhaps remove the other
name2mime, etc. tables?
Diffstat (limited to 'src/readcdf.c')
-rw-r--r-- | src/readcdf.c | 49 |
1 files changed, 46 insertions, 3 deletions
diff --git a/src/readcdf.c b/src/readcdf.c index efdb68c1..b7fe7e78 100644 --- a/src/readcdf.c +++ b/src/readcdf.c @@ -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 |