Exempt TCG/SEG attributes from unsupported case statement
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 16 Oct 2014 11:38:51 +0000 (13:38 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 16 Oct 2014 11:38:51 +0000 (13:38 +0200)
src/libimcv/plugins/imc_attestation/imc_attestation_process.c
src/libimcv/plugins/imv_attestation/imv_attestation_process.c

index fbe81ee..2fc2998 100644 (file)
@@ -446,6 +446,10 @@ bool imc_attestation_process(pa_tnc_attr_t *attr, imc_msg_t *msg,
                        msg->add_attribute(msg, attr);
                        break;
                }
+               case TCG_SEG_MAX_ATTR_SIZE_REQ:
+               case TCG_SEG_NEXT_SEG_REQ:
+                       break;
+
                /* TODO: Not implemented yet */
                case TCG_PTS_REQ_INTEG_MEAS_LOG:
                /* Attributes using XML */
@@ -468,8 +472,8 @@ bool imc_attestation_process(pa_tnc_attr_t *attr, imc_msg_t *msg,
                case TCG_PTS_FILE_MEAS:
                case TCG_PTS_INTEG_MEAS_LOG:
                default:
-                       DBG1(DBG_IMC, "received unsupported attribute '%N'",
-                               tcg_attr_names, attr->get_type(attr));
+                       DBG1(DBG_IMC, "received unsupported attribute '%N/%N'",
+                                pen_names, PEN_TCG, tcg_attr_names, attr_type.type);
                        break;
        }
        return TRUE;
index 311c19f..89a1f02 100644 (file)
@@ -530,6 +530,9 @@ quote_error:
                        }
                        break;
                }
+               case TCG_SEG_MAX_ATTR_SIZE_RESP:
+               case TCG_SEG_ATTR_SEG_ENV:
+                       break;
 
                /* TODO: Not implemented yet */
                case TCG_PTS_INTEG_MEAS_LOG:
@@ -555,8 +558,8 @@ quote_error:
                case TCG_PTS_REQ_FILE_MEAS:
                case TCG_PTS_REQ_INTEG_MEAS_LOG:
                default:
-                       DBG1(DBG_IMV, "received unsupported attribute '%N'",
-                                tcg_attr_names, attr->get_type(attr));
+                       DBG1(DBG_IMV, "received unsupported attribute '%N/%N'",
+                                pen_names, PEN_TCG, tcg_attr_names, attr_type.type);
                        break;
        }
        return TRUE;