Prevent continuing of an already finished FSM.
[silc.git] / lib / silcske / silcske_i.h
index 7edfa04a9d65cc1aef4f474370b072a3ddcdef45..572b0837fbc368f0aa3f1f8162546b7fef627de0 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2005 - 2006 Pekka Riikonen
+  Copyright (C) 2005 - 2007 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -87,11 +87,14 @@ struct SilcSKEStruct {
     SilcUInt32 data_len;
   } retrans;
 
-  unsigned int aborted    : 1;        /* Set when SKE aborted */
-  unsigned int freed      : 1;       /* Set when freed during session */
-  unsigned int responder  : 1;       /* Set when we are responder side */
-  unsigned int running    : 1;       /* Set when SKE is running */
-  unsigned int rekeying   : 1;       /* Set when rekeying */
+  SilcUInt16 timeout;                /* SKE timeout */
+  SilcUInt16 refcnt;                 /* Reference counter */
+
+  unsigned int aborted          : 1;         /* Set when SKE aborted */
+  unsigned int responder        : 1;         /* Set when we are responder side */
+  unsigned int rekeying         : 1;         /* Set when rekeying */
+  unsigned int failure_notified : 1;         /* Set to indicate that we already called the failure notify routine */
+  unsigned int fsm_finished     : 1;         /* Set when we're in FSM teardown */
 };
 
 #endif /* SILCSKE_I_H */