diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-08 07:41:01 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-10-08 07:41:01 -0400 |
commit | 85ecff46093ff8f3da4efd8b5d840b8bb7d681ce (patch) | |
tree | 936caa97e186e28a34b631c03bac3fcc7b6c50bf /asn.cpp | |
parent | dd1c8a5b24c558df6d6dda9f61ca9064b2ca873c (diff) | |
download | cryptopp-git-85ecff46093ff8f3da4efd8b5d840b8bb7d681ce.tar.gz |
Make bt const in BERDecodePeekLength
Diffstat (limited to 'asn.cpp')
-rw-r--r-- | asn.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -285,7 +285,7 @@ void DERReencode(BufferedTransformation &source, BufferedTransformation &dest) encoder.MessageEnd();
}
-size_t BERDecodePeekLength(BufferedTransformation &bt)
+size_t BERDecodePeekLength(const BufferedTransformation &bt)
{
lword count = (std::min)(bt.MaxRetrievable(), static_cast<lword>(16));
if (count == 0) return 0;
|