shortened some type names and enforced encoding rules
[strongswan.git] / src / libimcv / tcg / tcg_pts_attr_proto_caps.h
index 9e243fa..aaf2f30 100644 (file)
@@ -22,7 +22,7 @@
 #define TCG_PTS_ATTR_PROTO_CAPS_H_
 
 typedef struct tcg_pts_attr_proto_caps_t tcg_pts_attr_proto_caps_t;
-typedef enum pts_attr_proto_caps_flag_t pts_attr_proto_caps_flag_t;
+typedef enum pts_proto_caps_flag_t pts_proto_caps_flag_t;
 
 #include "tcg_attr.h"
 #include "pa_tnc/pa_tnc_attr.h"
@@ -30,17 +30,17 @@ typedef enum pts_attr_proto_caps_flag_t pts_attr_proto_caps_flag_t;
 /**
  * PTS Protocol Capabilities Flags
  */
-enum pts_attr_proto_caps_flag_t {
+enum pts_proto_caps_flag_t {
        /** XML based Evidence Support flag */
-       PTS_PROTO_CAPS_XML =                            (1<<0),
+       PTS_PROTO_CAPS_XML =            (1<<0),
        /** Trusted Platform Evidence flag */
-       PTS_PROTO_CAPS_T =                              (1<<1),
+       PTS_PROTO_CAPS_T =                      (1<<1),
        /** DH Nonce Negotiation Support flag */
-       PTS_PROTO_CAPS_DH =                             (1<<2),
+       PTS_PROTO_CAPS_DH =             (1<<2),
        /** Verification Support flag */
-       PTS_PROTO_CAPS_VER =                            (1<<3),
+       PTS_PROTO_CAPS_VER =            (1<<3),
        /** Current (In-Memory) Evidence Support flag */
-       PTS_PROTO_CAPS_CURRENT =                        (1<<4),
+       PTS_PROTO_CAPS_CURRENT =        (1<<4),
 };
 
 /**
@@ -59,15 +59,15 @@ struct tcg_pts_attr_proto_caps_t {
         *
         * @return                              set of flags
         */
-       pts_attr_proto_caps_flag_t (*get_flags)(tcg_pts_attr_proto_caps_t *this);
+       pts_proto_caps_flag_t (*get_flags)(tcg_pts_attr_proto_caps_t *this);
 
        /**
         * Set PTS procol capabilities flags
         *
-        * @param flags                         set of flags
+        * @param flags                 set of flags
         */
        void (*set_flags)(tcg_pts_attr_proto_caps_t *this, 
-                         pts_attr_proto_caps_flag_t flags);
+                                         pts_proto_caps_flag_t flags);
        
 };
 
@@ -76,7 +76,7 @@ struct tcg_pts_attr_proto_caps_t {
  *
  * @param flags                                set of flags
  */
-pa_tnc_attr_t* tcg_pts_attr_proto_caps_create(pts_attr_proto_caps_flag_t flags);
+pa_tnc_attr_t* tcg_pts_attr_proto_caps_create(pts_proto_caps_flag_t flags);
 
 /**
  * Creates an tcg_pts_attr_proto_caps_t object from received data