diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-03-01 06:10:06 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-03-01 06:10:06 -0500 |
commit | 5efb019d8bdc593b3c1a0b57d615b170c7dab02a (patch) | |
tree | e2c10e737542fd13ea50b58480e0791bbc455e47 /validat0.cpp | |
parent | 5fb2f5d45b9bb2cd86db5d01f4b30d606a2a4c80 (diff) | |
download | cryptopp-git-5efb019d8bdc593b3c1a0b57d615b170c7dab02a.tar.gz |
Add C++ nullptr support (Issue 383)
Diffstat (limited to 'validat0.cpp')
-rw-r--r-- | validat0.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/validat0.cpp b/validat0.cpp index ce1f226b..933f78ef 100644 --- a/validat0.cpp +++ b/validat0.cpp @@ -744,7 +744,7 @@ bool TestSecBlock() {
// NULL ptr with a size means to create a new SecBlock with all elements zero'd
- SecByteBlock z1(NULL, 256);
+ SecByteBlock z1(NULLPTR, 256);
temp = true;
for (size_t i = 0; i < z1.size(); i++)
@@ -757,7 +757,7 @@ bool TestSecBlock() std::cout << "passed: ";
std::cout << "Zeroized byte array" << std::endl;
- SecBlock<word32> z2(NULL, 256);
+ SecBlock<word32> z2(NULLPTR, 256);
temp = true;
for (size_t i = 0; i < z2.size(); i++)
@@ -770,7 +770,7 @@ bool TestSecBlock() std::cout << "passed: ";
std::cout << "Zeroized word32 array" << std::endl;
- SecBlock<word64> z3(NULL, 256);
+ SecBlock<word64> z3(NULLPTR, 256);
temp = true;
for (size_t i = 0; i < z3.size(); i++)
@@ -784,7 +784,7 @@ bool TestSecBlock() std::cout << "Zeroized word64 array" << std::endl;
#if defined(CRYPTOPP_WORD128_AVAILABLE)
- SecBlock<word128> z4(NULL, 256);
+ SecBlock<word128> z4(NULLPTR, 256);
temp = true;
for (size_t i = 0; i < z4.size(); i++)
@@ -802,17 +802,17 @@ bool TestSecBlock() //********** Non-zero'd block **********//
{
- SecByteBlock z1(NULL, 256);
+ SecByteBlock z1(NULLPTR, 256);
z1.SetMark(0);
- SecBlock<word32> z2(NULL, 256);
+ SecBlock<word32> z2(NULLPTR, 256);
z2.SetMark(0);
- SecBlock<word64> z3(NULL, 256);
+ SecBlock<word64> z3(NULLPTR, 256);
z3.SetMark(0);
#if defined(CRYPTOPP_WORD128_AVAILABLE)
- SecBlock<word128> z4(NULL, 256);
+ SecBlock<word128> z4(NULLPTR, 256);
z4.SetMark(0);
#endif
}
|