aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSansar Choinyambuu <schoinya@hsr.ch>2011-10-24 10:38:32 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-11-28 14:39:51 +0100
commitd09cf1971653bc9958dc1a19b92533c1ee8ef67a (patch)
treeb8f1b6154e43c1bf8b439387f1974f2a97653787 /src
parent52ae3f27f86b28c6dfee0d138a765a9101ad0d91 (diff)
downloadstrongswan-d09cf1971653bc9958dc1a19b92533c1ee8ef67a.tar.bz2
strongswan-d09cf1971653bc9958dc1a19b92533c1ee8ef67a.tar.xz
Temporary commenting out of processing optional PCR Composite field
Diffstat (limited to 'src')
-rw-r--r--src/libpts/tcg/tcg_pts_attr_simple_evid_final.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/libpts/tcg/tcg_pts_attr_simple_evid_final.c b/src/libpts/tcg/tcg_pts_attr_simple_evid_final.c
index 2aa584cc7..9528e3a6a 100644
--- a/src/libpts/tcg/tcg_pts_attr_simple_evid_final.c
+++ b/src/libpts/tcg/tcg_pts_attr_simple_evid_final.c
@@ -236,7 +236,7 @@ METHOD(pa_tnc_attr_t, process, status_t,
/* Optional Composite Hash Algorithm and TPM PCR Composite field is included */
if (this->flags != PTS_SIMPLE_EVID_FINAL_FLAG_NO)
{
- u_int32_t pcr_comp_len;
+ /** u_int32_t pcr_comp_len;*/
u_int32_t tpm_quote_sign_len;
/** TODO: Ignoring Hashing algorithm field
@@ -244,9 +244,14 @@ METHOD(pa_tnc_attr_t, process, status_t,
* reader->read_uint16(reader, &algorithm);
* this->comp_hash_algorithm = algorithm;
*/
- reader->read_uint32(reader, &pcr_comp_len);
- reader->read_data(reader, pcr_comp_len, &this->pcr_comp);
- this->pcr_comp = chunk_clone(this->pcr_comp);
+
+ /** TODO: Ignoring PCR Composite field
+ * Which data to send in this field from IMC?
+ * reader->read_uint32(reader, &pcr_comp_len);
+ * reader->read_data(reader, pcr_comp_len, &this->pcr_comp);
+ * this->pcr_comp = chunk_clone(this->pcr_comp);
+ */
+ this->pcr_comp = chunk_empty;
reader->read_uint32(reader, &tpm_quote_sign_len);
reader->read_data(reader, tpm_quote_sign_len, &this->tpm_quote_sign);
this->tpm_quote_sign = chunk_clone(this->tpm_quote_sign);