diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2014-09-01 07:37:10 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2014-10-05 12:55:38 +0200 |
commit | ebfd8278f9f3fff88ee2dfce4f4506dc2b1e11bc (patch) | |
tree | f5bba64c6bb0c9fb23691082f8c7547a91f73e68 /src | |
parent | 95e1524a646701a22890ea5200797d68386b318b (diff) | |
download | strongswan-ebfd8278f9f3fff88ee2dfce4f4506dc2b1e11bc.tar.bz2 strongswan-ebfd8278f9f3fff88ee2dfce4f4506dc2b1e11bc.tar.xz |
Assignment of flags starts with bit 0
Diffstat (limited to 'src')
-rw-r--r-- | src/libimcv/tcg/swid/tcg_swid_attr_req.c | 4 | ||||
-rw-r--r-- | src/libimcv/tcg/swid/tcg_swid_attr_req.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libimcv/tcg/swid/tcg_swid_attr_req.c b/src/libimcv/tcg/swid/tcg_swid_attr_req.c index c403d06f9..51e39008b 100644 --- a/src/libimcv/tcg/swid/tcg_swid_attr_req.c +++ b/src/libimcv/tcg/swid/tcg_swid_attr_req.c @@ -32,7 +32,7 @@ typedef struct private_tcg_swid_attr_req_t private_tcg_swid_attr_req_t; * 1 2 3 * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - * |Reserved |C|S|R| Tag ID Count | + * |R|S|C| Reserved| Tag ID Count | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Request ID | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ @@ -44,7 +44,7 @@ typedef struct private_tcg_swid_attr_req_t private_tcg_swid_attr_req_t; * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ -#define SWID_REQ_RESERVED_MASK 0x03 +#define SWID_REQ_RESERVED_MASK 0xE0 /** * Private data of an tcg_swid_attr_req_t object. diff --git a/src/libimcv/tcg/swid/tcg_swid_attr_req.h b/src/libimcv/tcg/swid/tcg_swid_attr_req.h index 59b597d84..9655c3c58 100644 --- a/src/libimcv/tcg/swid/tcg_swid_attr_req.h +++ b/src/libimcv/tcg/swid/tcg_swid_attr_req.h @@ -28,9 +28,9 @@ typedef enum tcg_swid_attr_req_flag_t tcg_swid_attr_req_flag_t; enum tcg_swid_attr_req_flag_t { TCG_SWID_ATTR_REQ_FLAG_NONE = 0, - TCG_SWID_ATTR_REQ_FLAG_R = (1 << 0), - TCG_SWID_ATTR_REQ_FLAG_S = (1 << 1), - TCG_SWID_ATTR_REQ_FLAG_C = (1 << 2) + TCG_SWID_ATTR_REQ_FLAG_R = (1 << 7), + TCG_SWID_ATTR_REQ_FLAG_S = (1 << 6), + TCG_SWID_ATTR_REQ_FLAG_C = (1 << 5) }; #include "tcg/tcg_attr.h" |