1diff -urNp openpts-0.2.6-patched/src/tboot2iml.c openpts-0.2.6-current/src/tboot2iml.c
2--- openpts-0.2.6-patched/src/tboot2iml.c 2012-07-23 16:30:12.381361421 -0400
3+++ openpts-0.2.6-current/src/tboot2iml.c 2012-07-23 17:25:59.053945778 -0400
4@@ -531,7 +531,7 @@ int sinit_acm_hash(char *filename, int s
5
6
7 int sha1sum_unzip(char *filename, int *filesize, BYTE *digest) {
8- FILE *fp;
9+ gzFile fp;
10 char buf[2048];
11 SHA_CTX sha_ctx;
12 int len;
13@@ -541,7 +541,7 @@ int sha1sum_unzip(char *filename, int *f
14
15 /* open */
16 fp = gzopen(filename, "rb");
17- if (fp == NULL) {
18+ if (fp == Z_NULL) {
19 LOG(LOG_ERR, "File %s does not exist\n", filename);
20 return 0;
21 }