aboutsummaryrefslogtreecommitdiff
path: root/python/python-axolotl-curve25519/patches/2bd1f5556fed92afb4efc2a95846a1c0f8332baf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'python/python-axolotl-curve25519/patches/2bd1f5556fed92afb4efc2a95846a1c0f8332baf.patch')
-rw-r--r--python/python-axolotl-curve25519/patches/2bd1f5556fed92afb4efc2a95846a1c0f8332baf.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/python/python-axolotl-curve25519/patches/2bd1f5556fed92afb4efc2a95846a1c0f8332baf.patch b/python/python-axolotl-curve25519/patches/2bd1f5556fed92afb4efc2a95846a1c0f8332baf.patch
new file mode 100644
index 0000000000..1e0af50bac
--- /dev/null
+++ b/python/python-axolotl-curve25519/patches/2bd1f5556fed92afb4efc2a95846a1c0f8332baf.patch
@@ -0,0 +1,43 @@
+From 2bd1f5556fed92afb4efc2a95846a1c0f8332baf Mon Sep 17 00:00:00 2001
+From: Josue Ortega <josueortega@debian.org.gt>
+Date: Sun, 15 Feb 2015 15:28:36 -0600
+Subject: [PATCH] Fixed prototype definition
+
+---
+ curve/ed25519/additions/zeroize.c | 4 ++--
+ curve/ed25519/additions/zeroize.h | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/curve/ed25519/additions/zeroize.c b/curve/ed25519/additions/zeroize.c
+index 37c1f70..be4a8e3 100644
+--- a/curve/ed25519/additions/zeroize.c
++++ b/curve/ed25519/additions/zeroize.c
+@@ -3,14 +3,14 @@
+ void zeroize(unsigned char* b, size_t len)
+ {
+ size_t count = 0;
+- unsigned long retval = 0;
++ //unsigned long retval = 0;
+ volatile unsigned char *p = b;
+
+ for (count = 0; count < len; count++)
+ p[count] = 0;
+ }
+
+-void zeroize_stack()
++void zeroize_stack(void)
+ {
+ unsigned char m[ZEROIZE_STACK_SIZE];
+ zeroize(m, sizeof m);
+diff --git a/curve/ed25519/additions/zeroize.h b/curve/ed25519/additions/zeroize.h
+index 80fcffb..7949924 100644
+--- a/curve/ed25519/additions/zeroize.h
++++ b/curve/ed25519/additions/zeroize.h
+@@ -7,6 +7,6 @@
+
+ void zeroize(unsigned char* b, size_t len);
+
+-void zeroize_stack();
++void zeroize_stack(void);
+
+ #endif