From: Pekka Riikonen Date: Fri, 6 Jul 2001 15:29:56 +0000 (+0000) Subject: updates. X-Git-Tag: robodoc-323~106 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=4dc90969e6ba3633f5f1d7a5303fe4e9ae4ebff0 updates. --- diff --git a/CHANGES b/CHANGES index f96b88fb..0e87f082 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,10 @@ +Fri Jul 6 18:26:31 EEST 2001 Pekka Riikonen + + * 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 * Do not show the error "Error receiving packet bla bla" diff --git a/TODO b/TODO index 623f541a..93670219 100644 --- 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 index 16081e1a..00000000 --- a/apps/irssi/src/fe-common/silc/silc-modules.c +++ /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) { } diff --git a/lib/silccrypt/silchmac.c b/lib/silccrypt/silchmac.c index c2baf7d9..454c175f 100644 --- a/lib/silccrypt/silchmac.c +++ b/lib/silccrypt/silchmac.c @@ -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);