Merged silc_1_0_branch to trunk.
[silc.git] / apps / silcd / serverid.h
index 2f5f858f5f1457ec7130e351e152c88888f7bf3a..4f81aa17ad0421658036e59e0b044abccdbe2983 100644 (file)
@@ -2,15 +2,15 @@
 
   serverid.h
 
-  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+  Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 1997 - 2000 Pekka Riikonen
+  Copyright (C) 1997 - 2005 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
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
-  
+
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 #define SERVERID_H
 
 /* Prototypes */
-void silc_id_create_server_id(int sock, SilcRng rng, SilcServerID **new_id);
-void silc_id_create_client_id(SilcServerID *server_id, SilcRng rng,
-                             SilcHash md5hash, char *nickname, 
+void silc_id_create_server_id(const char *ip, SilcUInt16 port, SilcRng rng,
+                             SilcServerID **new_id);
+bool silc_id_create_client_id(SilcServer server,
+                             SilcServerID *server_id, SilcRng rng,
+                             SilcHash md5hash, unsigned char *nickname,
+                             SilcUInt32 nick_len,
                              SilcClientID **new_id);
-void silc_id_create_channel_id(SilcServerID *router_id, SilcRng rng,
+bool silc_id_create_channel_id(SilcServer server,
+                              SilcServerID *router_id, SilcRng rng,
                               SilcChannelID **new_id);
+bool silc_id_is_valid_server_id(SilcServer server,
+                               SilcServerID *server_id,
+                               SilcSocketConnection remote);
 
 #endif