diff options
Diffstat (limited to 'g10/misc.c')
-rw-r--r-- | g10/misc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/g10/misc.c b/g10/misc.c index d3c01f4ef..e7bd8fac6 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -1,5 +1,5 @@ /* misc.c - miscellaneous functions - * Copyright (C) 1998, 1999 Free Software Foundation, Inc. + * Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -23,7 +23,6 @@ #include <stdlib.h> #include <string.h> #include <errno.h> -#include <assert.h> #if defined(__linux__) && defined(__alpha__) && __GLIBC__ < 2 #include <asm/sysinfo.h> #include <asm/unistd.h> @@ -32,6 +31,8 @@ #include <sys/time.h> #include <sys/resource.h> #endif +#include <assert.h> + #include <gcrypt.h> #include "util.h" #include "main.h" @@ -41,7 +42,6 @@ #define MAX_EXTERN_MPI_BITS 16384 - #if defined(__linux__) && defined(__alpha__) && __GLIBC__ < 2 #warning using trap_unaligned static int @@ -246,6 +246,7 @@ mpi_print( FILE *fp, MPI a, int mode ) } + u16 checksum_u16( unsigned n ) { @@ -289,7 +290,6 @@ checksum_mpi( MPI a ) } - u32 buffer_to_u32( const byte *buffer ) { @@ -359,6 +359,7 @@ print_digest_algo_note( int algo ) } + /**************** * Wrapper around the libgcrypt function with addional checks on * openPGP contrainst for the algo ID. |