Frank Denis
c6e93b9f79
Discourage use of --enable-blocking-random
2014-12-23 20:24:23 +01:00
Frank Denis
b5e1a5afc1
Merge branch 'master' of github.com:jedisct1/libsodium
...
* 'master' of github.com:jedisct1/libsodium:
C++ compat
Use guarded memory for the box_easy/box_detached tests.
2014-12-20 17:16:38 +01:00
Frank Denis
c795108686
+ Eric Dong
2014-12-20 17:16:27 +01:00
Frank Denis
bfcd1612c7
C++ compat
2014-12-18 00:12:50 +01:00
Frank Denis
9036d62fc9
Use guarded memory for the box_easy/box_detached tests.
2014-12-18 00:00:19 +01:00
Frank Denis
9af34c5766
Compile for armv7s
2014-12-16 19:33:58 +01:00
Frank Denis
e7a84c9e84
We always need to allocate aligned memory
2014-12-12 08:52:05 -08:00
Frank Denis
9b27460618
We always need a page size
2014-12-12 08:51:47 -08:00
Frank Denis
453c687239
Merge pull request #219 from clowwindy/fix_ios_build
...
Build Both i386 and x86_64 for iOS Simulator
2014-12-12 07:58:52 -08:00
clowwindy
b97c7f4f88
build both i386 and x86_64 for iOS simulator
2014-12-12 16:43:55 +08:00
clowwindy
d5acdd7f40
fix typo
2014-12-12 16:35:38 +08:00
Frank Denis
32cf1d50fa
Since we're compiling for OSX, run the test suite.
2014-12-11 00:35:31 -08:00
Frank Denis
ba3fdb4790
Display what the fat library contains
2014-12-10 21:43:55 -08:00
Frank Denis
a96eb971b4
If the OSX code in ios.sh is just for the simulator, using -Oz is fine
2014-12-10 21:41:31 -08:00
Frank Denis
f2b034867e
dist-build/ios: remove existing headers
2014-12-10 21:40:49 -08:00
Frank Denis
1ee6da8107
Make the output more readable
2014-12-10 21:27:10 -08:00
Frank Denis
d8deef19ef
Use make distclean for cleanup; tell the user where it's been installed
2014-12-10 21:23:24 -08:00
Frank Denis
d050dbbed5
Cleanup -> make distclean
2014-12-10 21:22:01 -08:00
Frank Denis
997485ac22
Use the same options on OSX and iOS
2014-12-10 21:21:15 -08:00
Frank Denis
d38d5167e4
Merge pull request #218 from JackWink/feature/jack/update-ios-build
...
iOS.sh: Update script to include arm64 and current OSX architecture in generated libsodium.a
2014-12-10 21:18:03 -08:00
Jack Wink
28edcc1885
update iOS build script to include arm64 and current OSX machine arch
2014-12-11 00:17:10 -05:00
Frank Denis
b1cac74b00
We can still directly call _mprotect_readwrite() instead of the high-level function.
2014-12-07 14:59:32 -08:00
Frank Denis
5e364632e0
Make sodium_free() callable even if protection is PROT_NONE.
...
Reported by @stouset, thanks!
2014-12-07 14:52:44 -08:00
Frank Denis
b53f5c7f74
The node binary was renamed nodejs on Ubuntu.
2014-12-04 10:28:49 -08:00
Frank Denis
4aac60f9a2
Ship android-armv7.sh
2014-12-01 19:47:04 -08:00
Frank Denis
4c1073e4e5
Exporting crypto_box and crypto_secretbox doesn't make sense in Javascript.
2014-11-30 20:00:10 -08:00
Frank Denis
e5024c368f
Remove obsolete, undocumented compatibility layer with Sodium 0.5
2014-11-30 19:57:41 -08:00
Frank Denis
f562d561d8
sodium_utils2 and sodium_utils3 cannot work in Javascript; this is expected.
2014-11-29 22:45:41 -08:00
Frank Denis
6fe4aeaf01
Emscripten: update the list of exported functions
2014-11-29 20:42:16 -08:00
Frank Denis
d28bf6b93f
Thanks @jlouis for ENaCl
2014-11-29 20:26:13 -08:00
Frank Denis
9d71e18a22
Always generate libsodium.pc
2014-11-29 13:53:20 -08:00
Frank Denis
d556a56c3c
Add extra assert() in tests allocating memory on the heap.
2014-11-25 16:19:20 -08:00
Frank Denis
6189eec330
Remove unused and shadowed global
2014-11-25 15:30:26 -08:00
Frank Denis
11ccb20512
If -fno-strict-overflow is available, don't add -fwrapv
2014-11-25 12:19:08 -08:00
Frank Denis
fa2da90fd3
Ignore *.mem
2014-11-25 09:52:34 -08:00
Frank Denis
61620d7e42
Make 'make check' actually run the tests on Emscripten.
2014-11-25 09:51:39 -08:00
Frank Denis
5437f8974d
Don't expect signals to work in Javascript
2014-11-24 17:48:51 -08:00
Frank Denis
69e3674c29
Include the test pre.js script only for tests.
2014-11-24 17:19:55 -08:00
Frank Denis
b421610110
AC_FUNC_MMAP assumes that mmap(2) is not available when cross-compiling
...
except on GNU systems. Just check for function presence instead.
2014-11-24 10:34:42 -08:00
Frank Denis
da2c9952db
Check if mmap(2) works, not just the presence of MAP_ANON
...
In particular, mmap(2) doesn't return an aligner pointer on Emscripten.
2014-11-24 10:22:50 -08:00
Frank Denis
60610da39d
Zero the subkey in {stream,xor}_xsalsa20
...
Spotted by Michael Rogers.
2014-11-23 23:42:07 -08:00
Frank Denis
db5b51042a
Don't export the JS function names in LDFLAGS.
2014-11-22 14:53:16 -08:00
Frank Denis
77caa2b4d5
Correct /test-data mount point
2014-11-22 14:34:10 -08:00
Frank Denis
5aeebd880e
Change EXEEXT to .js for Emscripten
2014-11-22 14:31:43 -08:00
Frank Denis
df1a75858c
Mount the current dir as /test-data (nodefs) for testing Javascript code
2014-11-22 13:46:09 -08:00
Frank Denis
d0eab9323f
Don't assume that madvise() is available even if related macros are defined.
2014-11-22 13:32:54 -08:00
Frank Denis
133118ca4d
Skip mlock/mprotect/explicit_bzero when using Emscripten
2014-11-22 12:32:11 -08:00
Frank Denis
cd2a7019f1
pre.js: unlink /dev/(u)random before re-registering them
2014-11-22 11:56:36 -08:00
Frank Denis
e7069f0363
Do not use "=" with "--" options
2014-11-22 11:43:23 -08:00
Frank Denis
b0403efc80
Fail if JS crypto is not available.
...
Emscripten registers /dev/urandom and /dev/random by default, but falls back to
Math.random()*256 when crypto.getRandomValues() is not available, which is not
acceptable. So we need to re-register them no matter what.
2014-11-22 11:24:32 -08:00