libimcv: Fix Doxygen comments after merging libpts into libimcv
[strongswan.git] / src / libimcv / tcg / tcg_attr.h
index d90227d..9523f8e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011 Andreas Steffen
+ * Copyright (C) 2011-2014 Andreas Steffen
  * HSR Hochschule fuer Technik Rapperswil
  *
  * This program is free software; you can redistribute it and/or modify it
  */
 
 /**
- * @defgroup tcg_attrt tcg_attr
- * @{ @ingroup tcg_attr
+ * @defgroup tcg_attr tcg_attr
+ * @{ @ingroup libimcv
  */
 
 #ifndef TCG_ATTR_H_
 #define TCG_ATTR_H_
 
+#include <pa_tnc/pa_tnc_attr.h>
 #include <library.h>
 
 typedef enum tcg_attr_t tcg_attr_t;
@@ -30,6 +31,28 @@ typedef enum tcg_attr_t tcg_attr_t;
  */
 enum tcg_attr_t {
 
+       /* SCAP Attributes */
+       TCG_SCAP_REFERENCES =                 0x00000001,
+       TCG_SCAP_CAPS_AND_INVENTORY =         0x00000002,
+       TCG_SCAP_CONTENT =                    0x00000003,
+       TCG_SCAP_ASSESSMENT =                 0x00000004,
+       TCG_SCAP_RESULTS =                    0x00000005,
+       TCG_SCAP_SUMMARY_RESULTS =            0x00000006,
+
+       /* SWID Attributes */
+       TCG_SWID_REQUEST =                    0x00000011,
+       TCG_SWID_TAG_ID_INVENTORY =           0x00000012,
+       TCG_SWID_TAG_ID_EVENTS =              0x00000013,
+       TCG_SWID_TAG_INVENTORY =              0x00000014,
+       TCG_SWID_TAG_EVENTS =                 0x00000015,
+
+       /* IF-M Attribute Segmentation */
+       TCG_SEG_MAX_ATTR_SIZE_REQ =           0x00000021,
+       TCG_SEG_MAX_ATTR_SIZE_RESP =          0x00000022,
+       TCG_SEG_ATTR_SEG_ENV =                0x00000023,
+       TCG_SEG_NEXT_SEG_REQ =                0x00000024,
+       TCG_SEG_CANCEL_SEG_EXCH =             0x00000025,
+
        /* PTS Protocol Negotiations */
        TCG_PTS_REQ_PROTO_CAPS =              0x01000000,
        TCG_PTS_PROTO_CAPS =                  0x02000000,
@@ -47,7 +70,7 @@ enum tcg_attr_t {
        TCG_PTS_AIK =                         0x0E000000,
 
        /* PTS-based Attestation Evidence */
-       TCG_PTS_REQ_FUNCT_COMP_EVID =         0x00100000,
+       TCG_PTS_REQ_FUNC_COMP_EVID =          0x00100000,
        TCG_PTS_GEN_ATTEST_EVID =             0x00200000,
        TCG_PTS_SIMPLE_COMP_EVID =            0x00300000,
        TCG_PTS_SIMPLE_EVID_FINAL =           0x00400000,
@@ -69,4 +92,14 @@ enum tcg_attr_t {
  */
 extern enum_name_t *tcg_attr_names;
 
+/**
+ * Create a TCG PA-TNC attribute from data
+ *
+ * @param type                         attribute type
+ * @param length                       attribute length
+ * @param value                                attribute value or segment
+ */
+pa_tnc_attr_t* tcg_attr_create_from_data(u_int32_t type, size_t length,
+                                                                                chunk_t value);
+
 #endif /** TCG_ATTR_H_ @}*/