Commented compiler options Wall Werror for Makefile
authorSansar Choinyambuu <schoinya@hsr.ch>
Mon, 8 Aug 2011 14:40:59 +0000 (16:40 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 8 Sep 2011 10:08:09 +0000 (12:08 +0200)
Corrected bit 0 for AIK flags to be least significant bit

src/libimcv/Makefile.am
src/libimcv/tcg/tcg_pts_attr_aik.c

index 7d2fe9a..c7ba779 100644 (file)
@@ -25,7 +25,7 @@ libimcv_la_SOURCES = \
        tcg/tcg_pts_attr_get_aik.h tcg/tcg_pts_attr_get_aik.c \
        tcg/tcg_pts_attr_aik.h tcg/tcg_pts_attr_aik.c
 
-CFLAGS = -Wall -Werror
+CFLAGS = -Wall -Werror
 
 SUBDIRS = .
 
index 501e058..ec51193 100644 (file)
@@ -117,7 +117,7 @@ METHOD(pa_tnc_attr_t, build, void,
 
        writer = bio_writer_create(PTS_AIK_SIZE);
        
-       if(this->naked_pub_aik) flags += 128;
+       if(this->naked_pub_aik) flags += 1;
        writer->write_uint8 (writer, flags);
        writer->write_data(writer, this->aik);