aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-09 08:41:16 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-09 08:41:16 +0000
commit1ff54a291a2c1471c9721558e6d097a970f556e4 (patch)
treeb9a414efffe6b564268f3e0b410fd6021f8c7c03
parent2426b58d9a303a2a1714657e68d4618c382151ee (diff)
downloadstrongswan-1ff54a291a2c1471c9721558e6d097a970f556e4.tar.bz2
strongswan-1ff54a291a2c1471c9721558e6d097a970f556e4.tar.xz
- added payload_info_t
-rw-r--r--Source/charon/encodings.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Source/charon/encodings.h b/Source/charon/encodings.h
index bc0213519..9b42e4b34 100644
--- a/Source/charon/encodings.h
+++ b/Source/charon/encodings.h
@@ -275,4 +275,36 @@ enum payload_type_e{
HEADER = 140
};
+/**
+ * Information of a specific payload are stored in this struct
+ *
+ * The following informations are needed for each payload
+ * - payload type
+ * - length of its associated data struct in bytes
+ * - encoding rules array
+ * - encoding rules count
+ */
+typedef struct payload_info_s payload_info_t;
+
+struct payload_info_s{
+ /**
+ * Type of payload
+ */
+ payload_type_t payload_type;
+ /**
+ * Length of associated data struct in bytes
+ */
+ size_t data_struct_length;
+
+ /**
+ * Pointer to the encoding rules array
+ */
+ encoding_rule_t *ecoding_rules;
+
+ /**
+ * Number of encoding rules for the specific payload_type
+ */
+ size_t encoding_rules_count;
+};
+
#endif /*ENCODINGS_H_*/