Keegan McAllister
ba6387f36c
Allow CryptoExceptions to be fatal
2012-03-31 16:19:33 -04:00
Keith Winstein
edf6ec9052
Insert missing "if-then" instruction in OCB ARM assem so works with Thumb-2.
...
(closes #86 github issue)
(approved by Ted Krovetz, author of OCB reference implementation)
2012-03-31 14:31:22 -04:00
Quentin Smith
3b2604b81c
Handle early gcc compilers that are missing __builtin_bswap64 or __builtin_ctz
...
(closes #84 )
2012-03-26 21:26:33 -04:00
Quentin Smith
d867a716b7
Use uintptr_t instead of size_t, since size_t is not guaranteed to be pointer-sized.
2012-03-26 21:18:55 -04:00
Keegan McAllister
f46bad0aa0
Rename sse_alloc to aligned_alloc
...
SSE is x86-specific, but we use this function on all archs.
2012-03-26 20:07:34 -04:00
Quentin Smith
10332ec61f
Handle platforms (like Darwin 9) that do not have posix_memalign
2012-03-23 02:17:29 -04:00
Keegan McAllister
9f38c76699
Explicitly disable dumping core ( closes #72 )
...
This is a precaution to avoid saving sensitive data to disk, e.g. session keys.
We expect that corefiles are not world readable, but they're still sitting on
the physical disk and it's safer just to disable creating them.
GitHub issue #71 deals with a similar concern.
2012-03-21 18:41:51 -04:00
Keith Winstein
40d69da5e6
Add PRNG reading from /dev/urandom
...
[Keegan: various small changes]
2012-03-19 23:12:07 -04:00
Keith Winstein
df3eec1397
Allow explicit UDP port option, confine ports to range 60000..61000
2012-03-10 03:34:47 -05:00
Quentin Smith
17d6962af8
Check for proper byteorder functions
...
[andersk@mit.edu: Add byteorder.h to libmoshcrypto_a_SOURCES]
2012-03-07 03:05:36 -05:00
Anders Kaseorg
aad760e7d6
Make warning CXXFLAGS configurable
...
This turns off -Werror by default except in the Debian package.
-Werror is inherently unportable and breaks things on OS X. While it
can cause problems in Debian too, this is at least a little better.
It also turns off -pedantic in src/protobufs, because apparently
protoc output doesn’t compile with -pedantic on all platforms.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-03-07 03:05:35 -05:00
Keith Winstein
ba6329e528
Better fix to alignment issue
2012-02-19 21:53:13 -05:00
Keith Winstein
b06204e72b
Fix alignment problem under clang (per nelhage)
2012-02-19 21:48:59 -05:00
Anders Kaseorg
689eedc271
Compile without --std=c++0x
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-02-17 21:29:51 -05:00
Anders Kaseorg
6c52c1d306
Purge ‘using namespace std’ from header files
...
std::bind and boost::lambda::bind don’t mix.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-02-17 20:22:12 -05:00
Anders Kaseorg
af649a035c
Add missing #includes
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2012-02-17 19:24:51 -05:00
Keith Winstein
3781a290c8
Add copyright/license notices
2012-02-06 20:52:48 -05:00
Keith Winstein
38c9e99882
Separate modules by subdirectory
2012-02-06 18:26:45 -05:00