diff options
Diffstat (limited to 'cipher')
-rw-r--r-- | cipher/ChangeLog | 13 | ||||
-rw-r--r-- | cipher/random.c | 4 | ||||
-rw-r--r-- | cipher/tiger.c | 2 | ||||
-rw-r--r-- | cipher/twofish.c | 6 |
4 files changed, 19 insertions, 6 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog index 84f22d98f..6b2134da2 100644 --- a/cipher/ChangeLog +++ b/cipher/ChangeLog @@ -1,3 +1,16 @@ +2001-03-12 Werner Koch <[email protected]> + + * twofish.c (gnupgext_enum_func): Add some static when comnpiled + as a module. + + * tiger.c (tiger_get_info): Return "TIGER192" and not just + "TIGER". By Edwin Woudt. + +2001-03-08 Werner Koch <[email protected]> + + * random.c: Always include time.h - standard requirement. Thanks + to James Troup. + 2001-01-18 Werner Koch <[email protected]> * rndw32.c: Fixed typo and wrong ifdef for VER_PLATFORM* macro diff --git a/cipher/random.c b/cipher/random.c index 02fc2ba3a..de4bcf6c1 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -32,6 +32,7 @@ #include <assert.h> #include <errno.h> #include <string.h> +#include <time.h> #include <sys/time.h> #include <sys/types.h> #include <sys/stat.h> @@ -43,9 +44,6 @@ #ifdef HAVE_GETTIMEOFDAY #include <sys/times.h> #endif -#ifdef HAVE_CLOCK_GETTIME - #include <time.h> -#endif #ifdef HAVE_GETRUSAGE #include <sys/resource.h> #endif diff --git a/cipher/tiger.c b/cipher/tiger.c index e4a7c4daa..193017076 100644 --- a/cipher/tiger.c +++ b/cipher/tiger.c @@ -904,7 +904,7 @@ tiger_get_info( int algo, size_t *contextsize, *(void (**)(TIGER_CONTEXT *))r_final = tiger_final; *(byte *(**)(TIGER_CONTEXT *))r_read = tiger_read; - return "TIGER"; + return "TIGER192"; } diff --git a/cipher/twofish.c b/cipher/twofish.c index 12982e123..e5a66520c 100644 --- a/cipher/twofish.c +++ b/cipher/twofish.c @@ -1004,6 +1004,8 @@ twofish_get_info (int algo, size_t *keylen, } +#ifdef IS_MODULE +static const char * const gnupgext_version = "TWOFISH ($Revision$)"; static struct { @@ -1034,7 +1036,7 @@ static struct { * version = interface version of the function/pointer * (currently this is 1 for all functions) */ -void * +static void * gnupgext_enum_func ( int what, int *sequence, int *class, int *vers ) { void *ret; @@ -1062,4 +1064,4 @@ gnupgext_enum_func ( int what, int *sequence, int *class, int *vers ) *sequence = i; return ret; } - +#endif |