added IKEv2 exchange type IKE_SESSION_RESUME from RFC 5723
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 15 Jul 2011 05:48:36 +0000 (07:48 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 15 Jul 2011 05:48:36 +0000 (07:48 +0200)
src/libcharon/encoding/payloads/ike_header.c
src/libcharon/encoding/payloads/ike_header.h

index 80dcee0..24d22f3 100644 (file)
@@ -101,17 +101,18 @@ struct private_ike_header_t {
 
 ENUM_BEGIN(exchange_type_names, EXCHANGE_TYPE_UNDEFINED, EXCHANGE_TYPE_UNDEFINED,
        "EXCHANGE_TYPE_UNDEFINED");
-ENUM_NEXT(exchange_type_names, IKE_SA_INIT, INFORMATIONAL, EXCHANGE_TYPE_UNDEFINED,
+ENUM_NEXT(exchange_type_names, IKE_SA_INIT, IKE_SESSION_RESUME, EXCHANGE_TYPE_UNDEFINED,
        "IKE_SA_INIT",
        "IKE_AUTH",
        "CREATE_CHILD_SA",
-       "INFORMATIONAL");
+       "INFORMATIONAL",
+       "IKE_SESSION_RESUME");
 #ifdef ME
-ENUM_NEXT(exchange_type_names, ME_CONNECT, ME_CONNECT, INFORMATIONAL,
+ENUM_NEXT(exchange_type_names, ME_CONNECT, ME_CONNECT, IKE_SESSION_RESUME,
        "ME_CONNECT");
 ENUM_END(exchange_type_names, ME_CONNECT);
 #else
-ENUM_END(exchange_type_names, INFORMATIONAL);
+ENUM_END(exchange_type_names, IKE_SESSION_RESUME);
 #endif /* ME */
 
 /**
index f52c852..5579a49 100644 (file)
@@ -80,6 +80,11 @@ enum exchange_type_t{
         * INFORMATIONAL.
         */
        INFORMATIONAL = 37,
+
+       /**
+        * IKE_SESSION_RESUME (RFC 5723).
+        */
+       IKE_SESSION_RESUME = 38,
 #ifdef ME
        /**
         * ME_CONNECT