diff options
author | Werner Koch <wk@gnupg.org> | 1999-05-17 22:03:24 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-05-17 22:03:24 +0200 |
commit | 3983f30bd2f671d4f7c5bbe39a1d6a7b191f2af5 (patch) | |
tree | ef2ea1a332a2e954d1c5c86b66570da8fa6935b6 /cipher | |
parent | See ChangeLog: Sat May 8 19:28:33 CEST 1999 Werner Koch (diff) | |
download | gnupg2-3983f30bd2f671d4f7c5bbe39a1d6a7b191f2af5.tar.xz gnupg2-3983f30bd2f671d4f7c5bbe39a1d6a7b191f2af5.zip |
See ChangeLog: Mon May 17 21:54:43 CEST 1999 Werner Koch
Diffstat (limited to 'cipher')
-rw-r--r-- | cipher/ChangeLog | 4 | ||||
-rw-r--r-- | cipher/dynload.c | 4 | ||||
-rw-r--r-- | cipher/random.c | 4 |
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; |