Commit Graph

799 Commits (9d579ad208741ede6e5a9e272a99ec41f9baf7f5)

Author SHA1 Message Date
Jeffrey Walton 9d579ad208 Added CRYPTOPP_ASSERT to SafeConvert result because FileSink::Put2 does not throw. Maybe Put2 should work with std::streamsize::max() size blocks 2015-07-30 02:37:59 -04:00
Jeffrey Walton 978b7149f2 Removed USING_NAMESPACE(std). Switch cout and friends to use std::cout 2015-07-29 23:12:44 -04:00
Jeffrey Walton 414b673706 Added test for T1 is signed 2015-07-29 22:37:36 -04:00
Jeffrey Walton d41009f1dc Added script to clean Visual Studio artifacts 2015-07-29 13:45:54 -04:00
Jeffrey Walton ae0984b4b1 Cleaned up tests for OS X, TR1 names spaces and ancient versus modern libstdc++ and libc++. Thanks to Jonathan Wakely for devising the clever test 2015-07-29 13:37:52 -04:00
Jeffrey Walton becea0ef8d Cleared "'register' storage class specifier is deprecated" warning under C++11 2015-07-29 11:22:33 -04:00
Jeffrey Walton 2936447d05 Updated IntToString and SafeConvert to squash the "signed/unsigned" warnings once and for all. Removed the specializations that caused more trouble than they were worth. (If all platforms offered size_t and ssizeT the same way, specializations would have been the preferred solution 2015-07-29 06:33:41 -04:00
Jeffrey Walton ffc5c11555 Improved comment on xorbuff and GCC's selection of vmovdqa 2015-07-28 20:36:22 -04:00
Jeffrey Walton 0b8ef06e08 Updated intstall.txt to use'egrep "(error|FAILED)\' 2015-07-28 19:07:23 -04:00
Jeffrey Walton 48187e4fe6 Updated intstall.txt to include a Build section and Install section 2015-07-28 18:48:47 -04:00
Jeffrey Walton e79ae73295 Finished alloca cleanup under the BSDs 2015-07-28 18:18:56 -04:00
Jeffrey Walton 697ccb452b Issue 19 and comments on the 05076dbd 2015-07-28 18:00:19 -04:00
Jeffrey Walton cffba26fa1 Fixed compiler error under OpenBSD for missing "alloca" 2015-07-27 19:43:43 -04:00
Jeffrey Walton 185a2c8e83 Used pragmas to disable the deprecated warnings under Visual Studio rather than _WINSOCK_DEPRECATED_NO_WARNINGS. Using _WINSOCK_DEPRECATED_NO_WARNINGS could cross-pollintae out of the library and into user code 2015-07-27 19:05:53 -04:00
Jeffrey Walton 383d9636a8 Defined out the stuff that cross-polinated during testing 2015-07-27 19:03:14 -04:00
Jeffrey Walton 05076dbdea _WINSOCK_DEPRECATED_NO_WARNINGS was defined before including Winsock gear to avoid the warnings and the rewrite. Being tracked at GitHub, Issue 19, https://github.com/weidai11/cryptopp/issues/19 2015-07-27 18:05:08 -04:00
Jeffrey Walton d76a974625 Added guard based on std::uncaught_exception so the class does not throw in an exception handler 2015-07-27 17:26:45 -04:00
Jeffrey Walton 836cf237cf Fixed compile error due to MS using _MSC_VER rather than __cplusplus 2015-07-27 16:46:25 -04:00
Jeffrey Walton 25cc4c2db1 Fixed compile error on MinGW due to including <alloca.h> 2015-07-27 16:36:05 -04:00
Jeffrey Walton ab33799f5a Added missing <limits> for MinGW compile 2015-07-27 16:18:43 -04:00
Jeffrey Walton 69afee37b0 Fixed compiler error due to reversing ifdef and ifdef for CRYPTOPP_UNIX_AVAILABLE 2015-07-27 16:15:46 -04:00
Jeffrey Walton 6cf9b6e081 Updated comment on reason for the gyrations when including <memory> 2015-07-27 16:10:20 -04:00
Jeffrey Walton 03f36f8655 Placed guards on <alloca.> include 2015-07-27 16:07:46 -04:00
Jeffrey Walton ef318d5423 Fixed compiler errors on Apple due to cross product of {C++03,C++11} x {libc++, libstdc++}. It included bringing in the correct <memory> in <stdcpp.h>, and then only including <stdcpp.h> when <memory> was needed. 2015-07-27 16:01:55 -04:00
Jeffrey Walton 418dd2a870 Fixed #error left in header that was used for testing 2015-07-27 14:44:55 -04:00
Jeffrey Walton 8dd3a77e11 Fixed compiler error " error: missing binary operator before token 'defined'" 2015-07-27 14:43:18 -04:00
Jeffrey Walton 23d28aa123 Fixed complier error "error: missing ')' after 'defined'" 2015-07-27 14:41:13 -04:00
Jeffrey Walton c42947e19b Rearranged includes for consistency after testing 2015-07-27 13:03:18 -04:00
Jeffrey Walton efcc05e615 Fixed compiler error "exception specification in declaration does not match previous declaration" under Clang 2015-07-27 12:45:22 -04:00
Jeffrey Walton 5eff653a54 Added guard and specialization for APple with and without "-std=c++11" 2015-07-27 12:40:06 -04:00
Jeffrey Walton e40ff65269 Fixed spelling error: __cpluplus → __cplusplus 2015-07-27 09:40:36 -04:00
Jeffrey Walton 6b2129afb3 Added "include <alloca.h>" due to compile failure on Cygwin 2015-07-27 02:06:11 -04:00
Jeffrey Walton 69098d8cf2 Added "include <cryptlib.h>" due to Cygwin not picking up the CRYPTOPP_CXX11 define 2015-07-27 01:35:45 -04:00
Jeffrey Walton 66ff5e14f1 Improved GCC test by adding "__GNUC__ >= 5" 2015-07-27 01:32:10 -04:00
Jeffrey Walton f8fc7562f1 Added TODO message on the throw dtors 2015-07-27 01:22:41 -04:00
Jeffrey Walton 9533f52714 Added CRYPTOPP_THROW to ThreadLocalStorage dtor 2015-07-27 01:19:27 -04:00
Jeffrey Walton bd3a67034d Cleared "auto_ptr is deprecated" warning. Switch to unique_ptr when C++11 is in effect 2015-07-27 01:07:55 -04:00
Jeffrey Walton 9de95b4400 Cleared "auto_ptr is deprecated" warning. Switch to unique_ptr when C++11 is in effect 2015-07-27 00:37:22 -04:00
Jeffrey Walton f017391174 Cleared "auto_ptr is deprecated" warning. Switch to unique_ptr when C++11 is in effect 2015-07-27 00:28:05 -04:00
Jeffrey Walton 23f59f6b28 Added tests for Intel compilers. Tightened tests on GCC since the others claim to be GCC, but fail to compile programs that GCC can compile 2015-07-27 00:17:41 -04:00
Jeffrey Walton cebf5906a9 Added "-Wcast-align" when CRYPTOPP_NO_UNALIGNED_DATA_ACCESS is in effect. Commented out at the moment because its very noisy 2015-07-26 23:47:46 -04:00
Jeffrey Walton 8e868bf2e5 Tuned preprocessor tests. Added CRYPTOPP_THROW to AlgorithmParametersBase 2015-07-26 21:57:10 -04:00
Jeffrey Walton 46edae68a5 Added C++11 R-value and noexcept feature detection 2015-07-26 20:36:24 -04:00
Jeffrey Walton 8ea014437c Added additional information 2015-07-26 17:33:07 -04:00
Jeffrey Walton 378461b525 Cleared compiler error when compiling with "-DDEBUG" 2015-07-26 16:28:04 -04:00
Jeffrey Walton b7de164d62 Cut-in CRYPTOPP_ASSERT in all remaining header and source files 2015-07-26 16:03:14 -04:00
Jeffrey Walton 7b64ca489a Added "trap.h" include for header and source files that assert 2015-07-26 15:51:16 -04:00
Jeffrey Walton f4a584da6e Added comment about test.cpp and DebugTrapHandler for example code 2015-07-26 15:26:47 -04:00
Jeffrey Walton 30b706316b Cleared "signed/unsigned" warning introduced by 1997c21b37 under GCC. The ultimate fix is to guard the std::streamsize specialization to ensure Microsoft compilers don't see it 2015-07-26 13:56:45 -04:00
Jeffrey Walton fedd08f15c Cleared compiler error due to use of "LARGE_INTEGER freq = { .QuadPart = 0 };". 32-bit and 64-bit compilers accept "{ {0,0} }". Note the original code was OK, and we were probably woking around a GCC issue 2015-07-26 13:50:16 -04:00