summaryrefslogtreecommitdiffstats
path: root/cipher
diff options
context:
space:
mode:
Diffstat (limited to 'cipher')
-rw-r--r--cipher/ChangeLog4
-rw-r--r--cipher/dynload.c4
-rw-r--r--cipher/random.c4
3 files changed, 11 insertions, 1 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index 34d30af24..e755d022b 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,7 @@
+Mon May 17 21:54:43 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
+
+ * dynload.c (register_internal_cipher_extension): Minor init fix.
+
Tue May 4 15:47:53 CEST 1999 Werner Koch <wk@isil.d.shuttle.de>
* primegen.c (gen_prime): Readded the Fermat test. Fixed the bug
diff --git a/cipher/dynload.c b/cipher/dynload.c
index 318867796..ae3de3f5d 100644
--- a/cipher/dynload.c
+++ b/cipher/dynload.c
@@ -170,7 +170,11 @@ register_internal_cipher_extension(
}
/* and register */
el->enumfunc = enumfunc;
+ #ifdef HAVE_DL_OPEN
el->handle = (void*)1;
+ #else
+ el->handle = 1;
+ #endif
el->next = extensions;
extensions = el;
}
diff --git a/cipher/random.c b/cipher/random.c
index 396e1dbd9..eb4fdf793 100644
--- a/cipher/random.c
+++ b/cipher/random.c
@@ -304,10 +304,12 @@ read_pool( byte *buffer, size_t length, int level )
static void
add_randomness( const void *buffer, size_t length, int source )
{
+ const byte *p = buffer;
+
if( !is_initialized )
initialize();
while( length-- ) {
- rndpool[pool_writepos++] = *((byte*)buffer)++;
+ rndpool[pool_writepos++] = *p++;
if( pool_writepos >= POOLSIZE ) {
if( source > 1 )
pool_filled = 1;