updates.
[silc.git] / lib / silcclient / client.h
index f78135f53a79528c1cb178d18f2de33b21af1162..a2677b709ad0bf7dbe28d8bff3c0510272f63ea0 100644 (file)
@@ -2,7 +2,7 @@
 
   client.h
 
-  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+  Author: Pekka Riikonen <priikone@silcnet.org>
 
   Copyright (C) 1997 - 2001 Pekka Riikonen
 
@@ -44,6 +44,15 @@ typedef struct {
   void *context;
 } *SilcClientRekey;
 
+/* Context to hold the connection authentication request callbacks that
+   will be called when the server has replied back to our request about
+   current authentication method in the session. */
+typedef struct {
+  SilcConnectionAuthRequest callback;
+  void *context;
+  SilcTask timeout;
+} *SilcClientConnAuthRequest;
+
 /* Connection structure used in client to associate all the important
    connection specific data to this structure. */
 struct SilcClientConnectionStruct {
@@ -121,6 +130,9 @@ struct SilcClientConnectionStruct {
   /* Re-key context */
   SilcClientRekey rekey;
 
+  /* Authentication request context. */
+  SilcClientConnAuthRequest connauth;
+
   /* Pointer back to the SilcClient. This object is passed to the application
      and the actual client object is accesible through this pointer. */
   SilcClient client;
@@ -295,5 +307,10 @@ void silc_client_notify_by_server(SilcClient client,
 void silc_client_private_message(SilcClient client, 
                                 SilcSocketConnection sock, 
                                 SilcPacketContext *packet);
-
+void silc_client_connection_auth_request(SilcClient client,
+                                        SilcSocketConnection sock,
+                                        SilcPacketContext *packet);
+void silc_client_ftp(SilcClient client,
+                    SilcSocketConnection sock,
+                    SilcPacketContext *packet);
 #endif