summaryrefslogtreecommitdiff
path: root/asn.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-26 16:03:14 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-26 16:03:14 -0400
commitb7de164d6251dc066123b59bc15d30c74e920756 (patch)
tree650e67242386d55616a2038c5cbc7042568ed377 /asn.h
parent7b64ca489a7e1da36b02b4a35d149275914d8268 (diff)
downloadcryptopp-git-b7de164d6251dc066123b59bc15d30c74e920756.tar.gz
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
Diffstat (limited to 'asn.h')
-rw-r--r--asn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/asn.h b/asn.h
index 14da1366..26215441 100644
--- a/asn.h
+++ b/asn.h
@@ -134,7 +134,7 @@ public:
~BERGeneralDecoder();
bool IsDefiniteLength() const {return m_definiteLength;}
- lword RemainingLength() const {assert(m_definiteLength); return m_length;}
+ lword RemainingLength() const {CRYPTOPP_ASSERT(m_definiteLength); return m_length;}
bool EndReached() const;
byte PeekByte() const;
void CheckByte(byte b);
@@ -152,7 +152,7 @@ protected:
private:
void Init(byte asnTag);
- void StoreInitialize(const NameValuePairs &parameters) {assert(false);}
+ void StoreInitialize(const NameValuePairs &parameters) {CRYPTOPP_ASSERT(false);}
lword ReduceLength(lword delta);
};