[tor-commits] [tor/master] Use torint.h in curve25519-donna*.c
nickm at torproject.org
nickm at torproject.org
Fri Feb 15 21:00:52 UTC 2013
commit 4beee0f69ba65690755e486648d901f716cfd0ee
Author: Nick Mathewson <nickm at torproject.org>
Date: Thu Feb 14 15:34:38 2013 -0500
Use torint.h in curve25519-donna*.c
This will get it building on systems that lack stdint.h
---
changes/integers_donna | 3 +++
src/ext/curve25519_donna/curve25519-donna-c64.c | 4 +++-
src/ext/curve25519_donna/curve25519-donna.c | 4 +++-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/changes/integers_donna b/changes/integers_donna
new file mode 100644
index 0000000..e9c69e8
--- /dev/null
+++ b/changes/integers_donna
@@ -0,0 +1,3 @@
+ o Minor bugfixes (portability)
+ - Tweak the curve25519-donna*.c implementations to tolerate systems
+ that lack stdint.h. Fixes bug 3894; bugfix on 0.2.4.8-alpha.
diff --git a/src/ext/curve25519_donna/curve25519-donna-c64.c b/src/ext/curve25519_donna/curve25519-donna-c64.c
index 9ebd8a1..b68ff36 100644
--- a/src/ext/curve25519_donna/curve25519-donna-c64.c
+++ b/src/ext/curve25519_donna/curve25519-donna-c64.c
@@ -22,8 +22,10 @@
* from the sample implementation.
*/
+#include "orconfig.h"
+
#include <string.h>
-#include <stdint.h>
+#include "torint.h"
typedef uint8_t u8;
typedef uint64_t limb;
diff --git a/src/ext/curve25519_donna/curve25519-donna.c b/src/ext/curve25519_donna/curve25519-donna.c
index 80e4594..5c6821c 100644
--- a/src/ext/curve25519_donna/curve25519-donna.c
+++ b/src/ext/curve25519_donna/curve25519-donna.c
@@ -46,8 +46,10 @@
* from the sample implementation.
*/
+#include "orconfig.h"
+
#include <string.h>
-#include <stdint.h>
+#include "torint.h"
typedef uint8_t u8;
typedef int32_t s32;
More information about the tor-commits
mailing list