Merged silc_1_0_branch to trunk.
[silc.git] / apps / irssi / docs / help / in / key.in
index 3d3a716252150d419cf410351e34f1fdb7803df6..054904d89286aea6d15c3d34218d86197f1f58a2 100644 (file)
@@ -20,7 +20,7 @@ Types:
 
 Commands:
 
-  set        [<key> [<cipher>] [<hmac>]]
+  set        [<key> [<cipher>] [<hmac>]] [-responder]
 
     Set the key into use.  If the <key> is provided it is used
     as the key material.  If the <key> is not provided the
@@ -28,9 +28,11 @@ Commands:
     been performed this command has no effect.
 
     If the type is MSG and the <key> is `*' then random key
-    will be generated automatically.  The <cipher> may be set
-    for both private message and channel private keys and the
-    <hmac> may be set only to the channel private keys.
+    will be generated automatically.  The -responder option
+    may be used ONLY with MSG type.  One of the clients must
+    be the responder side.  The one being the responder must
+    use this option.  The clients setting the key must agree
+    on which one is the responder.
 
   unset      [<number>]
 
@@ -73,14 +75,14 @@ Commands:
     sender with the hostname and port of your key agreement
     server with this command.
 
-    If the hostname and port are ommitted, the irssi boolean
+    If the hostname and port are ommitted, the boolean
     variable use_auto_addr will be examined.  If it is set
     the value of auto_bind_ip will be used as the IP address
     to listen for the return reply, the value of auto_public_ip
     will be the IP address sent to the remote client, and the
     auto_bind_port will be the port value to be bound to and
     sent to the remote client.  If auto_public_ip is unset, but
-    auto_bind_ip is set, irssi will send the auto_bind_ip
+    auto_bind_ip is set, silc client will send the auto_bind_ip
     variable's value to the remote client.
 
   negotiate  [<hostname> [<port>]]
@@ -95,5 +97,11 @@ Examples:
 
   Set channel private key to current channel, and list all keys:
 
-    /KEY CHANNEL set very_secret_key_this_is
-    /KEY CHANNEL list
+    /KEY CHANNEL * set very_secret_key_this_is
+    /KEY CHANNEL * list
+    /KEY MSG nickname set secretkey
+    /KEY MSG nick set secretkey -responder
+    /KEY MSG foo agreement 10.2.1.7 5000
+    /KEY MSG bar negotiate 10.2.1.7 5000
+
+See also: WHOIS, CHANNEL, GETKEY