updates.
[silc.git] / apps / irssi / src / silc / core / silc-channels.c
index a19ca5accd3181b8c8eba513048de22ec03afeef..a522bc4b7dc144fee37de5db0e1ec019a448f7f7 100644 (file)
@@ -550,8 +550,6 @@ typedef struct {
   SILC_SERVER_REC *server;
 } *KeyInternal;
 
-static SilcSKEKeyMaterial *curr_key = NULL;
-
 /* Key agreement callback that is called after the key agreement protocol
    has been performed. This is called also if error occured during the
    key agreement protocol. The `key' is the allocated key material and
@@ -569,8 +567,6 @@ static void keyagr_completion(SilcClient client,
 {
   KeyInternal i = (KeyInternal)context;
 
-  curr_key = NULL;
-
   switch(status) {
   case SILC_KEY_AGREEMENT_OK:
     printformat_module("fe-common/silc", i->server, NULL, MSGLEVEL_NOTICES,
@@ -741,15 +737,6 @@ static void command_key(const char *data, SILC_SERVER_REC *server,
   if (!strcasecmp(argv[3], "set")) {
     command = 1;
 
-    if (argc == 4) {
-      if (curr_key && type == 1 && client_entry) {
-       silc_client_del_private_message_key(silc_client, conn, client_entry);
-       silc_client_add_private_message_key_ske(silc_client, conn, 
-                                               client_entry, NULL, curr_key);
-       goto out;
-      }
-    }
-
     if (argc >= 5) {
       if (type == 1 && client_entry) {
        /* Set private message key */