updates.
[silc.git] / lib / silcclient / idlist.h
index 08b9cc6fd883c8960a415f6a90d67d41a51401b1..26b38e010e3311aa9b76ccc6b4da4b031d4d2bf2 100644 (file)
 #ifndef IDLIST_H
 #define IDLIST_H
 
+typedef enum {
+  SILC_CLIENT_STATUS_NONE       = 0x0000,
+  SILC_CLIENT_STATUS_RESOLVING  = 0x0001,
+} SilcClientStatus;
+
 /* Client entry context. When client receives information about new client
    (it receives its ID, for example, by IDENTIFY request) we create new
    client entry. This entry also includes the private message keys if
@@ -34,6 +39,8 @@ typedef struct {
   uint32 num;
   uint32 mode;                 /* User mode in SILC */
   SilcClientID *id;            /* The Client ID */
+  unsigned char *fingerprint;  /* Fingerprint of client's public key */
+  uint32 fingerprint_len;      /* Length of the fingerprint */
   bool valid;                  /* FALSE if this entry is not valid */
   SilcCipher send_key;         /* Private message key for sending */
   SilcCipher receive_key;      /* Private message key for receiving */
@@ -43,6 +50,7 @@ typedef struct {
   uint32 key_len;
   bool generated;              /* TRUE if library generated the key */
   SilcClientKeyAgreement ke;   /* Current key agreement context or NULL */
+  SilcClientStatus status;     /* Status mask */
 } *SilcClientEntry;
 
 /* Client and its mode on a channel */
@@ -112,6 +120,7 @@ void silc_client_update_client(SilcClient client,
                               const char *userinfo,
                               uint32 mode);
 void silc_client_del_client_entry(SilcClient client, 
+                                 SilcClientConnection conn,
                                  SilcClientEntry client_entry);
 SilcClientEntry silc_idlist_get_client(SilcClient client,
                                       SilcClientConnection conn,