updates.
[silc.git] / apps / silcd / protocol.h
index c309aabc401437d1a215976307f5baeb67c3dc0a..21c3d193bd987bf00aa024713eae8b88e2a6e439 100644 (file)
@@ -26,6 +26,7 @@
 #define SILC_PROTOCOL_SERVER_CONNECTION_AUTH    1
 #define SILC_PROTOCOL_SERVER_KEY_EXCHANGE       2
 #define SILC_PROTOCOL_SERVER_REKEY              3
+#define SILC_PROTOCOL_SERVER_BACKUP             4
 /* #define SILC_PROTOCOL_SERVER_MAX             255 */
 
 /* Internal context for Key Exchange protocol. */
@@ -43,6 +44,11 @@ typedef struct {
   void *dest_id;
   SilcIdType dest_id_type;
 
+  /* Pointer to the configurations. */
+  void *cconfig;
+  void *sconfig;
+  void *rconfig;
+
   SilcTask timeout_task;
   SilcPacketContext *packet;
   SilcSKE ske;
@@ -76,6 +82,11 @@ typedef struct {
   void *dest_id;
   SilcIdType dest_id_type;
 
+  /* Pointer to the configurations. */
+  void *cconfig;
+  void *sconfig;
+  void *rconfig;
+
   SilcTask timeout_task;
   SilcPacketContext *packet;
   uint16 conn_type;
@@ -104,10 +115,5 @@ int silc_server_protocol_ke_set_keys(SilcSKE ske,
                                     SilcHmac hmac,
                                     SilcSKEDiffieHellmanGroup group,
                                     bool is_responder);
-void silc_server_protocol_rekey_generate(SilcServer server,
-                                        SilcServerRekeyInternalContext *ctx);
-void 
-silc_server_protocol_rekey_generate_pfs(SilcServer server,
-                                       SilcServerRekeyInternalContext *ctx);
 
 #endif