added notify message types used by RFC 4739
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 19 Jan 2009 12:32:42 +0000 (12:32 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 19 Jan 2009 12:32:42 +0000 (12:32 -0000)
src/charon/encoding/payloads/notify_payload.c
src/charon/encoding/payloads/notify_payload.h

index 6bf260d..602675c 100644 (file)
@@ -54,7 +54,7 @@ ENUM_NEXT(notify_type_names, SINGLE_PAIR_REQUIRED, UNEXPECTED_NAT_DETECTED, AUTH
        "UNEXPECTED_NAT_DETECTED");
 ENUM_NEXT(notify_type_names, ME_CONNECT_FAILED, ME_CONNECT_FAILED, UNEXPECTED_NAT_DETECTED,
        "ME_CONNECT_FAILED");
-ENUM_NEXT(notify_type_names, INITIAL_CONTACT, AUTH_LIFETIME, ME_CONNECT_FAILED,
+ENUM_NEXT(notify_type_names, INITIAL_CONTACT, ANOTHER_AUTH_FOLLOWS, ME_CONNECT_FAILED,
        "INITIAL_CONTACT",
        "SET_WINDOW_SIZE",
        "ADDITIONAL_TS_POSSIBLE",
@@ -74,8 +74,10 @@ ENUM_NEXT(notify_type_names, INITIAL_CONTACT, AUTH_LIFETIME, ME_CONNECT_FAILED,
        "UPDATE_SA_ADDRESSES",
        "COOKIE2",
        "NO_NATS_ALLOWED",
-       "AUTH_LIFETIME");
-ENUM_NEXT(notify_type_names, EAP_ONLY_AUTHENTICATION, EAP_ONLY_AUTHENTICATION, AUTH_LIFETIME,
+       "AUTH_LIFETIME",
+       "MULTIPLE_AUTH_SUPPORTED",
+       "ANOTHER_AUTH_FOLLOWS");
+ENUM_NEXT(notify_type_names, EAP_ONLY_AUTHENTICATION, EAP_ONLY_AUTHENTICATION, ANOTHER_AUTH_FOLLOWS,
        "EAP_ONLY_AUTHENTICATION");
 ENUM_NEXT(notify_type_names, USE_BEET_MODE, USE_BEET_MODE, EAP_ONLY_AUTHENTICATION,
        "USE_BEET_MODE");
@@ -118,7 +120,7 @@ ENUM_NEXT(notify_type_short_names, SINGLE_PAIR_REQUIRED, UNEXPECTED_NAT_DETECTED
        "UNEXPECT_NAT");
 ENUM_NEXT(notify_type_short_names, ME_CONNECT_FAILED, ME_CONNECT_FAILED, UNEXPECTED_NAT_DETECTED,
        "ME_CONN_FAIL");
-ENUM_NEXT(notify_type_short_names, INITIAL_CONTACT, AUTH_LIFETIME, ME_CONNECT_FAILED,
+ENUM_NEXT(notify_type_short_names, INITIAL_CONTACT, ANOTHER_AUTH_FOLLOWS, ME_CONNECT_FAILED,
        "INIT_CONTACT",
        "SET_WINSIZE",
        "ADD_TS_POSS",
@@ -138,8 +140,10 @@ ENUM_NEXT(notify_type_short_names, INITIAL_CONTACT, AUTH_LIFETIME, ME_CONNECT_FA
        "UPD_SA_ADDR",
        "COOKIE2",
        "NO_NATS",
-       "AUTH_LFT");
-ENUM_NEXT(notify_type_short_names, EAP_ONLY_AUTHENTICATION, EAP_ONLY_AUTHENTICATION, AUTH_LIFETIME,
+       "AUTH_LFT",
+       "MULT_AUTH",
+       "AUTH_FOLLOWS");
+ENUM_NEXT(notify_type_short_names, EAP_ONLY_AUTHENTICATION, EAP_ONLY_AUTHENTICATION, ANOTHER_AUTH_FOLLOWS,
        "EAP_ONLY");
 ENUM_NEXT(notify_type_short_names, USE_BEET_MODE, USE_BEET_MODE, EAP_ONLY_AUTHENTICATION,
        "BEET_MODE");
index c2287dd..70ad47b 100644 (file)
@@ -89,6 +89,9 @@ enum notify_type_t {
        NO_NATS_ALLOWED = 16402,
        /* repeated authentication extension, RFC4478 */
        AUTH_LIFETIME = 16403,
+    /* multiple authentication exchanges, RFC 4739 */
+       MULTIPLE_AUTH_SUPPORTED = 16404,
+       ANOTHER_AUTH_FOLLOWS = 16405,
        /* draft-eronen-ipsec-ikev2-eap-auth, not assigned by IANA yet */
        EAP_ONLY_AUTHENTICATION = 40960,
        /* BEET mode, not even a draft yet. private use */