aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2000-07-14 17:34:53 +0000
committerWerner Koch <[email protected]>2000-07-14 17:34:53 +0000
commit92cd25550836198cf1e3a6aac239eef98364359d (patch)
tree4fad355126fae79c93535e0e7c6afd91e384552a /g10/misc.c
parentSee ChangeLog: Thu May 25 18:39:11 CEST 2000 Werner Koch (diff)
downloadgnupg-92cd25550836198cf1e3a6aac239eef98364359d.tar.gz
gnupg-92cd25550836198cf1e3a6aac239eef98364359d.zip
See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner Koch
Diffstat (limited to 'g10/misc.c')
-rw-r--r--g10/misc.c9
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.