added XAUTH client states
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 15 Dec 2006 10:35:14 +0000 (10:35 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 15 Dec 2006 10:35:14 +0000 (10:35 -0000)
src/pluto/constants.c
src/pluto/constants.h

index f2810b8..53de6f6 100644 (file)
@@ -185,6 +185,8 @@ static const char *const state_name[] = {
 
        "STATE_XAUTH_R0",
        "STATE_XAUTH_R1",
+       "STATE_XAUTH_I1",
+       "STATE_XAUTH_I2",
 
        "STATE_MODE_CFG_R0",
        "STATE_MODE_CFG_R1",
@@ -222,6 +224,8 @@ const char *const state_story[] = {
 
        "sent XAUTH request, expecting reply",   /* STATE_XAUTH_R0 */
        "sent XAUTH status, expecting ack",      /* STATE_XAUTH_R1 */
+       "received XAUTH request, sent reply",    /* STATE_XAUTH_I1 */
+       "received XAUTH status, sent ack",       /* STATE_XAUTH_I2 */
 
        "sent ModeCfg reply",                    /* STATE_MODE_CFG_R0 */
        "sent ModeCfg reply",                    /* STATE_MODE_CFG_R1 */
index bbacd2f..080953c 100644 (file)
@@ -508,8 +508,11 @@ enum state_kind {
 
     /* XAUTH states */
 
-    STATE_XAUTH_R0,              /* server state: sent request, awaiting reply */
-    STATE_XAUTH_R1,              /* server state: sent success/fail, awaiting reply */
+    STATE_XAUTH_R0,              /* responder states (server) */
+    STATE_XAUTH_R1,
+
+    STATE_XAUTH_I1,              /* initiator states (client) */
+    STATE_XAUTH_I2,
 
     /* Mode Config states */