summaryrefslogtreecommitdiffstats
path: root/python/python-axolotl-curve25519/patches/87303fb7cffc99c13895c9888b270b740a7245d0.patch
diff options
context:
space:
mode:
author Andrew Clemons <andrew.clemons@gmail.com>2017-02-13 22:09:42 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-18 07:54:05 +0700
commitf96f9a9a8e9a09d225f064a623cc25b78f2d16ee (patch)
treef74218b2a9baf6b79f895118b43ab833ab36432e /python/python-axolotl-curve25519/patches/87303fb7cffc99c13895c9888b270b740a7245d0.patch
parentb0fe1b7c7678277e0c45e0fcf58243cdcf8a98af (diff)
downloadslackbuilds-f96f9a9a8e9a09d225f064a623cc25b78f2d16ee.tar.gz
slackbuilds-f96f9a9a8e9a09d225f064a623cc25b78f2d16ee.tar.xz
python/python-axolotl-curve25519: Updated for version 0.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python-axolotl-curve25519/patches/87303fb7cffc99c13895c9888b270b740a7245d0.patch')
-rw-r--r--python/python-axolotl-curve25519/patches/87303fb7cffc99c13895c9888b270b740a7245d0.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/python/python-axolotl-curve25519/patches/87303fb7cffc99c13895c9888b270b740a7245d0.patch b/python/python-axolotl-curve25519/patches/87303fb7cffc99c13895c9888b270b740a7245d0.patch
new file mode 100644
index 0000000000..4e172f7d40
--- /dev/null
+++ b/python/python-axolotl-curve25519/patches/87303fb7cffc99c13895c9888b270b740a7245d0.patch
@@ -0,0 +1,40 @@
+From 87303fb7cffc99c13895c9888b270b740a7245d0 Mon Sep 17 00:00:00 2001
+From: Josue Ortega <josueortega@debian.org.gt>
+Date: Sun, 15 Feb 2015 15:29:41 -0600
+Subject: [PATCH] Fixed differ in signedness [-Wpointer-sign] warning
+
+---
+ curve25519module.c | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/curve25519module.c b/curve25519module.c
+index 4c8ec96..f4bd3d7 100644
+--- a/curve25519module.c
++++ b/curve25519module.c
+@@ -47,7 +47,8 @@ calculateSignature(PyObject *self, PyObject *args)
+ return NULL;
+ }
+
+- curve25519_sign(signature, privatekey, message, messagelen, random);
++ curve25519_sign((unsigned char *)signature, (unsigned char *)privatekey,
++ (unsigned char *)message, messagelen, (unsigned char *)random);
+
+ return PyBytes_FromStringAndSize((char *)signature, 64);
+ }
+@@ -73,7 +74,8 @@ verifySignature(PyObject *self, PyObject *args)
+ return NULL;
+ }
+
+- int result = curve25519_verify(signature, publickey, message, messagelen);
++ int result = curve25519_verify((unsigned char *)signature, (unsigned char *)publickey,
++ (unsigned char *)message, messagelen);
+
+ return Py_BuildValue("i", result);
+
+@@ -173,4 +175,4 @@ curve25519_functions[] = {
+ (void)Py_InitModule("axolotl_curve25519", curve25519_functions);
+ }
+
+-#endif
+\ No newline at end of file
++#endif