From c7447e78e2abb1298fecb9861fe420109c91f14f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sun, 23 May 1999 12:29:05 +0000 Subject: See ChangeLog: Sun May 23 14:20:22 CEST 1999 Werner Koch --- cipher/ChangeLog | 6 ++++++ cipher/cipher.c | 2 -- cipher/random.c | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'cipher') diff --git a/cipher/ChangeLog b/cipher/ChangeLog index e755d022b..b2fc6401c 100644 --- a/cipher/ChangeLog +++ b/cipher/ChangeLog @@ -1,3 +1,9 @@ +Sun May 23 14:20:22 CEST 1999 Werner Koch + + * cipher.c (setup_cipher_table): Enable Twofish + + * random.c (fast_random_poll): Disable use of times() for mingw32. + Mon May 17 21:54:43 CEST 1999 Werner Koch * dynload.c (register_internal_cipher_extension): Minor init fix. diff --git a/cipher/cipher.c b/cipher/cipher.c index c3712f985..a44dcc4a7 100644 --- a/cipher/cipher.c +++ b/cipher/cipher.c @@ -83,7 +83,6 @@ setup_cipher_table(void) int i; i = 0; - if( getenv("GNUPG_ENABLE_TWOFISH") ) { cipher_table[i].algo = CIPHER_ALGO_TWOFISH; cipher_table[i].name = twofish_get_info( cipher_table[i].algo, &cipher_table[i].keylen, @@ -95,7 +94,6 @@ setup_cipher_table(void) if( !cipher_table[i].name ) BUG(); i++; - } cipher_table[i].algo = CIPHER_ALGO_BLOWFISH; cipher_table[i].name = blowfish_get_info( cipher_table[i].algo, &cipher_table[i].keylen, diff --git a/cipher/random.c b/cipher/random.c index eb4fdf793..5fa45ea86 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -360,10 +360,12 @@ fast_random_poll() add_randomness( &tv.tv_usec, sizeof(tv.tv_usec), 1 ); } #else /* use times */ + #ifndef HAVE_DOSISH_SYSTEM { struct tms buf; times( &buf ); add_randomness( &buf, sizeof buf, 1 ); } + #endif #endif #ifdef HAVE_GETRUSAGE { struct rusage buf; -- cgit v1.2.3