1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Description: Fixed pointer targets in initialization differ in signedness warning.
Author: Josue Ortega <josueortega@debian.org.gt>
Forwarded: https://github.com/tgalal/python-axolotl-curve25519/pull/2
Last-Update: 2015-02-15
--- a/curve25519module.c
+++ b/curve25519module.c
@@ -47,7 +47,8 @@
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 @@
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 @@
(void)Py_InitModule("axolotl_curve25519", curve25519_functions);
}
-#endif
\ No newline at end of file
+#endif
|