aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-08 16:18:42 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-08 16:18:42 +0000
commit6bcadc38bc145d6af8ea671a74caf560296641e8 (patch)
treead63f8f6f125550c28c8d3299254eda43094ed80
parentcdd0dcdc337634e654a8a80d0de2e31917f6acc0 (diff)
downloadstrongswan-6bcadc38bc145d6af8ea671a74caf560296641e8.tar.bz2
strongswan-6bcadc38bc145d6af8ea671a74caf560296641e8.tar.xz
- added payload_type_t
-rw-r--r--Source/charon/encodings.h88
1 files changed, 85 insertions, 3 deletions
diff --git a/Source/charon/encodings.h b/Source/charon/encodings.h
index 9c7ede1c4..bc0213519 100644
--- a/Source/charon/encodings.h
+++ b/Source/charon/encodings.h
@@ -40,9 +40,9 @@
* which has to be parsed or generated differently has its own
* enum value.
*/
-typedef enum encoding_e encoding_t;
+typedef enum encoding_type_e encoding_type_t;
-enum encoding_e{
+enum encoding_type_e{
/**
* Representing a 4 Bit unsigned int value
*
@@ -186,11 +186,93 @@ struct encoding_rule_s{
/**
* Encoding type
*/
- encoding_t type;
+ encoding_type_t type;
/**
* Offset in the data struct
*/
u_int32_t offset;
};
+
+/**
+ * Payload-Types of a IKEv2-Message
+ *
+ *
+ * Header and substructures are also defined as
+ * payload types with values of PRIVATE USE space
+ */
+typedef enum payload_type_e payload_type_t;
+
+enum payload_type_e{
+ /**
+ * SA
+ */
+ SECURITY_ASSOCIATION = 33,
+ /**
+ * KE
+ */
+ KEY_EXCHANGE = 34,
+ /**
+ * IDi
+ */
+ ID_INITIATOR = 35,
+ /**
+ * IDr
+ */
+ ID_RESPONDER = 36,
+ /**
+ * CERT
+ */
+ CERTIFICATE = 37,
+ /**
+ * CERTREQ
+ */
+ CERTIFICATE_REQUEST = 38,
+ /**
+ * AUTH
+ */
+ AUTHENTICATION = 39,
+ /**
+ * Ni, Nr
+ */
+ NONCE = 40,
+ /**
+ * N
+ */
+ NOTIFY = 41,
+ /**
+ * D
+ */
+ DELETE = 42,
+ /**
+ * V
+ */
+ VENDOR_ID = 43,
+ /**
+ * TSi
+ */
+ TRAFFIC_SELECTOR_INITIATOR = 44,
+ /**
+ * TSr
+ */
+ TRAFFIC_SELECTOR_RESPONDER = 45,
+ /**
+ * E
+ */
+ ENCRYPTED = 46,
+ /**
+ * CP
+ */
+ CONFIGURATION = 47,
+ /**
+ * EAP
+ */
+ EXTENSIBLE_AUTHENTICATION = 48,
+
+ /**
+ * Header has value 140 of PRIVATE USE space
+ */
+ HEADER = 140
+};
+
#endif /*ENCODINGS_H_*/