Hi,

Here is a tiny patch that fixes some issues I met building tboot.

Kind regards,
Frederic Guihery

Signed-off-by: Frederic Guihery <sy...@cat-lan.com>


diff -r 57ea1beb3bc8 lcptools/Makefile
--- a/lcptools/Makefile    Thu Jul 22 22:19:08 2010 -0700
+++ b/lcptools/Makefile    Mon Jul 26 22:33:28 2010 +0200
@@ -75,7 +75,7 @@
  #

  trousers_dep:
-    @echo -e "#include <trousers/tss.h>" | $(CC) -x c $(CFLAGS) 
$(LDFLAGS) $(LIBS) - -Wl,--defsym=main=0 -o $@ >/dev/null 2>&1 || (echo 
trousers-devel package is not installed && false)
+    @echo -e "#include <trousers/tss.h>" | $(CC) -x c $(CFLAGS) 
$(LDFLAGS) $(LIBS) -Wl,--defsym=main=0 -o $@ >/dev/null 2>&1 || (echo 
trousers-devel package is not installed && false)

  #
  # dependencies
diff -r 57ea1beb3bc8 lcptools/lcptools.c
--- a/lcptools/lcptools.c    Thu Jul 22 22:19:08 2010 -0700
+++ b/lcptools/lcptools.c    Mon Jul 26 22:33:28 2010 +0200
@@ -736,7 +736,7 @@
                  pcr_length = select + sizeof(select)
                               + sizeof(TPM_LOCALITY_SELECTION) + 
SHA1_HASH_LEN;
                  /* check whether the data input is long enough */
-                if ( (pcr_length + (pread_data - src.listdata) -2)
+                if ( (pcr_length + (uint32_t)(pread_data - 
src.listdata) - 2)
 > src.listdata_length ) {
                      log_error("the policy list data is not correct\n");
                      result = LCP_E_COMD_INTERNAL_ERR;


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
tboot-devel mailing list
tboot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tboot-devel

Reply via email to