Fix compile under Visual Studio 2005/MSC 14.00
Previous testing occurred with Visual Studio 2005 SP 1, and it lacks some of the Safe C++/security enhanced functions.pull/398/head
parent
71afcadadb
commit
7fb6b3df74
|
|
@ -3009,7 +3009,7 @@ Integer::Integer(const byte *encodedInteger, size_t byteCount, Signedness s, Byt
|
||||||
if (o == LITTLE_ENDIAN_ORDER)
|
if (o == LITTLE_ENDIAN_ORDER)
|
||||||
{
|
{
|
||||||
SecByteBlock block(byteCount);
|
SecByteBlock block(byteCount);
|
||||||
#if (CRYPTOPP_MSC_VERSION >= 1400)
|
#if (CRYPTOPP_MSC_VERSION >= 1410)
|
||||||
std::reverse_copy(encodedInteger, encodedInteger+byteCount,
|
std::reverse_copy(encodedInteger, encodedInteger+byteCount,
|
||||||
stdext::make_checked_array_iterator(block.begin(), block.size()));
|
stdext::make_checked_array_iterator(block.begin(), block.size()));
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -194,7 +194,7 @@ bool TestSettings()
|
||||||
word32 w;
|
word32 w;
|
||||||
const byte s[] = "\x01\x02\x03\x04";
|
const byte s[] = "\x01\x02\x03\x04";
|
||||||
|
|
||||||
#if (CRYPTOPP_MSC_VERSION >= 1400)
|
#if (CRYPTOPP_MSC_VERSION >= 1410)
|
||||||
std::copy(s, s+4,
|
std::copy(s, s+4,
|
||||||
stdext::make_checked_array_iterator(reinterpret_cast<byte*>(&w), sizeof(w)));
|
stdext::make_checked_array_iterator(reinterpret_cast<byte*>(&w), sizeof(w)));
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue