created libpts
[strongswan.git] / src / libimcv / pa_tnc / pa_tnc_attr.c
index 1a1ea07..c927e23 100644 (file)
@@ -17,6 +17,9 @@
 #include "ietf/ietf_attr.h"
 #include "ietf/ietf_attr_pa_tnc_error.h"
 #include "ietf/ietf_attr_port_filter.h"
+#include "ietf/ietf_attr_product_info.h"
+
+#ifdef USE_PTS
 #include "tcg/tcg_attr.h"
 #include "tcg/tcg_pts_attr_proto_caps.h"
 #include "tcg/tcg_pts_attr_meas_algo.h"
@@ -30,6 +33,8 @@
 #include "tcg/tcg_pts_attr_simple_evid_final.h"
 #include "tcg/tcg_pts_attr_req_file_meas.h"
 #include "tcg/tcg_pts_attr_file_meas.h"
+#endif /* USE_PTS */
+
 #include "ita/ita_attr.h"
 #include "ita/ita_attr_command.h"
 
@@ -48,9 +53,10 @@ pa_tnc_attr_t* pa_tnc_attr_create_from_data(pen_t vendor_id, u_int32_t type,
                                        return ietf_attr_port_filter_create_from_data(value);
                                case IETF_ATTR_PA_TNC_ERROR:
                                        return ietf_attr_pa_tnc_error_create_from_data(value);
+                               case IETF_ATTR_PRODUCT_INFORMATION:
+                                       return ietf_attr_product_info_create_from_data(value);
                                case IETF_ATTR_TESTING:
                                case IETF_ATTR_ATTRIBUTE_REQUEST:
-                               case IETF_ATTR_PRODUCT_INFORMATION:
                                case IETF_ATTR_NUMERIC_VERSION:
                                case IETF_ATTR_STRING_VERSION:
                                case IETF_ATTR_OPERATIONAL_STATUS:
@@ -64,6 +70,7 @@ pa_tnc_attr_t* pa_tnc_attr_create_from_data(pen_t vendor_id, u_int32_t type,
                                        break;
                        }
                        break;
+#ifdef USE_PTS
                case PEN_TCG:
                        switch (type)
                        {
@@ -114,6 +121,7 @@ pa_tnc_attr_t* pa_tnc_attr_create_from_data(pen_t vendor_id, u_int32_t type,
                                        break;
                        }
                        break;
+#endif /* HAVE _PTS */
                case PEN_ITA:
                        switch (type)
                        {