> > > You may need this patch, if you have problems with localtime or asctime: > https://github.com/weidai11/cryptopp/commit/b706548e6cd5 > > Hi Jeffrey ! Commit (1) and (2) work just as fine.
I couldn't apply the patch about localtime or asctime. The compilation didn't complain about validate.h. The submitted patch for time is probably from a repository's branch and doesn't match the downloaded validate.h. See function TimeToString() below. ___________________________________________________________________________________ // Safer functions on Windows for C&A, http://github.com/weidai11/cryptopp/issues/55 inline std::string TimeToString(const time_t& t) { #if (CRYPTOPP_MSC_VERSION >= 1400) tm localTime = {}; char timeBuf[64]; errno_t err; err = ::localtime_s(&localTime, &t); CRYPTOPP_ASSERT(err == 0); err = ::asctime_s(timeBuf, sizeof(timeBuf), &localTime); CRYPTOPP_ASSERT(err == 0); std::string str(timeBuf); #else std::string str(::asctime(::localtime(&t))); #endif // Cleanup whitespace std::string::size_type pos = 0; while (!str.empty() && std::isspace(str[str.length()-1])) {str.erase(str.end()-1);} while (!str.empty() && std::string::npos != (pos = str.find(" ", pos))) {str.erase(pos, 1);} return str; } ___________________________________________________________________________________ I don't need cross-compiling. But i gave it a try with a similar patch around line 199 in GNUmakefile-cross. It compile fine except for those two. g++ -DNDEBUG -g2 -O3 -fPIC -pipe -Wall -c -mpclmul gf2n_simd.cpp g++ -DNDEBUG -g2 -O3 -fPIC -pipe -Wall -c -mssse3 keccak_simd.cpp Thanks for all you did. I'm all set now and can go on. -- You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/72221297-35f2-4452-bfff-7d871e0abc7a%40googlegroups.com.
