summaryrefslogtreecommitdiff
path: root/asn.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-10-08 07:41:01 -0400
committerJeffrey Walton <noloader@gmail.com>2019-10-08 07:41:01 -0400
commit85ecff46093ff8f3da4efd8b5d840b8bb7d681ce (patch)
tree936caa97e186e28a34b631c03bac3fcc7b6c50bf /asn.cpp
parentdd1c8a5b24c558df6d6dda9f61ca9064b2ca873c (diff)
downloadcryptopp-git-85ecff46093ff8f3da4efd8b5d840b8bb7d681ce.tar.gz
Make bt const in BERDecodePeekLength
Diffstat (limited to 'asn.cpp')
-rw-r--r--asn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn.cpp b/asn.cpp
index e21f1c59..d3ceef9d 100644
--- a/asn.cpp
+++ b/asn.cpp
@@ -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;