summaryrefslogtreecommitdiff
path: root/mpi
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-02-16 21:05:37 +0000
committerWerner Koch <wk@gnupg.org>2009-02-16 21:05:37 +0000
commit9ecd705ab395d6fa9c192471fe81dc160dfeafac (patch)
tree0ea203f7807d5671d8da3b3c699c1054f844ddb8 /mpi
parentba1c1d7456745adbd3b6b94bc935cacc914126eb (diff)
downloadlibgcrypt-9ecd705ab395d6fa9c192471fe81dc160dfeafac.tar.gz
Portability fixes.
Diffstat (limited to 'mpi')
-rw-r--r--mpi/ChangeLog4
-rw-r--r--mpi/mpicoder.c4
-rw-r--r--mpi/mpiutil.c1
3 files changed, 8 insertions, 1 deletions
diff --git a/mpi/ChangeLog b/mpi/ChangeLog
index 2488e586..235a3692 100644
--- a/mpi/ChangeLog
+++ b/mpi/ChangeLog
@@ -1,3 +1,7 @@
+2009-02-16 Werner Koch <wk@g10code.com>
+
+ * mpiutil.c: Remove memory.h.
+
2008-12-05 Werner Koch <wk@g10code.com>
* mpicoder.c (mpi_read_from_buffer): Do not bail out if the mpi is
diff --git a/mpi/mpicoder.c b/mpi/mpicoder.c
index 8f0c76f1..4c76189e 100644
--- a/mpi/mpicoder.c
+++ b/mpi/mpicoder.c
@@ -456,6 +456,10 @@ gcry_mpi_scan (struct gcry_mpi **ret_mpi, enum gcry_mpi_format format,
const unsigned char *s = buffer;
size_t n;
+ /* This test is not strictly necessary and an assert (!len)
+ would be sufficient. We keep this test in case we later
+ allow the BUFLEN argument to act as a sanitiy check. Same
+ below. */
if (len && len < 4)
return gcry_error (GPG_ERR_TOO_SHORT);
diff --git a/mpi/mpiutil.c b/mpi/mpiutil.c
index 4dc52113..950e4ea5 100644
--- a/mpi/mpiutil.c
+++ b/mpi/mpiutil.c
@@ -25,7 +25,6 @@
#include "g10lib.h"
#include "mpi-internal.h"
-#include "memory.h"
#include "mod-source-info.h"