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 /fipsalgt.cpp | |
parent | 5fb2f5d45b9bb2cd86db5d01f4b30d606a2a4c80 (diff) | |
download | cryptopp-git-5efb019d8bdc593b3c1a0b57d615b170c7dab02a.tar.gz |
Add C++ nullptr support (Issue 383)
Diffstat (limited to 'fipsalgt.cpp')
-rw-r--r-- | fipsalgt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fipsalgt.cpp b/fipsalgt.cpp index f0d4fe43..26ce6477 100644 --- a/fipsalgt.cpp +++ b/fipsalgt.cpp @@ -20,7 +20,7 @@ USING_NAMESPACE(std) class LineBreakParser : public AutoSignaling<Bufferless<Filter> >
{
public:
- LineBreakParser(BufferedTransformation *attachment=NULL, byte lineEnd='\n')
+ LineBreakParser(BufferedTransformation *attachment=NULLPTR, byte lineEnd='\n')
: m_lineEnd(lineEnd) {Detach(attachment);}
size_t Put2(const byte *begin, size_t length, int messageEnd, bool blocking)
@@ -400,7 +400,7 @@ protected: return (Result *) new typename RSASS<PKCS1v15, H>::Signer;
}
- return NULL;
+ return NULLPTR;
}
template <class Result>
@@ -417,7 +417,7 @@ protected: else if (hash == "512")
return CreateRSA2<SHA512, Result>(standard);
else
- return NULL;
+ return NULLPTR;
}
virtual void DoTest()
@@ -1259,7 +1259,7 @@ int FIPS_140_AlgorithmTest(int argc, char **argv) test = "KAT";
bool encrypt = (filename.find("vrct") == std::string::npos);
- BufferedTransformation *pSink = NULL;
+ BufferedTransformation *pSink = NULLPTR;
if (argc > 3)
{
|