updates.
authorPekka Riikonen <priikone@silcnet.org>
Fri, 6 Jul 2001 15:29:56 +0000 (15:29 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 6 Jul 2001 15:29:56 +0000 (15:29 +0000)
CHANGES
TODO
apps/irssi/src/fe-common/silc/silc-modules.c [deleted file]
lib/silccrypt/silchmac.c

diff --git a/CHANGES b/CHANGES
index f96b88fb3de08c9d9016393e56a29c53b426cda8..0e87f08296b29ab685e274b54c582e867d446b38 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,10 @@
+Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
+
+       * Changed the dynamic tables to static size tables in the
+         lib/silccrypt/silchmac.c.
+
+       * Removed GCC dependencies from the code.  A patch by cras.
+
 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
 
        * Do not show the error "Error receiving packet bla bla"
diff --git a/TODO b/TODO
index 623f541ad4c227a2753d9e3e43d3c122246030bb..936702190c00424ecc116e3f9a414eb55f24e37a 100644 (file)
--- a/TODO
+++ b/TODO
@@ -35,7 +35,7 @@ TODO/bugs In SILC Client Library
    CMODE and CUMODE by the command reply identifier must be added.
    Otherwise saving the modes for the channels and channel user
    entries are impossible since server does not send Channel ID as
-   command reply in these functions.
+   command reply in these commands.
 
  o All protocol execution timeouts are hard coded. They should be 
    configurable and the Irssi SILC client should be able to set them
diff --git a/apps/irssi/src/fe-common/silc/silc-modules.c b/apps/irssi/src/fe-common/silc/silc-modules.c
deleted file mode 100644 (file)
index 16081e1..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-/* this file is automatically generated by configure - don't change */
-void fe_silc_modules_init(void) {  }
-void fe_silc_modules_deinit(void) {  }
index c2baf7d901500d897cad84ef16821bfa0102cc16..454c175fedeef80ee45accb1799dbecda89588e6 100644 (file)
@@ -231,10 +231,9 @@ void silc_hmac_make_internal(SilcHmac hmac, unsigned char *data,
                             uint32 key_len, unsigned char *return_hash)
 {
   SilcHash hash = hmac->hash;
-  unsigned char inner_pad[hash->hash->block_len + 1];
-  unsigned char outer_pad[hash->hash->block_len + 1];
-  unsigned char hvalue[hash->hash->hash_len];
-  unsigned char mac[128];
+  unsigned char inner_pad[64];
+  unsigned char outer_pad[64];
+  unsigned char hvalue[20], mac[20];
   void *hash_context;
   int i;
 
@@ -314,7 +313,7 @@ void silc_hmac_make_truncated(SilcHmac hmac, unsigned char *data,
                              uint32 truncated_len,
                              unsigned char *return_hash)
 {
-  unsigned char hvalue[hmac->hash->hash->hash_len];
+  unsigned char hvalue[20];
 
   silc_hmac_make_internal(hmac, data, data_len, 
                          hmac->key, hmac->key_len, hvalue);