aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-12-23 22:12:57 +0000
committerlloyd <[email protected]>2010-12-23 22:12:57 +0000
commita72a2d92200e4f5988a496b23b7bedbfbcf442a2 (patch)
tree411757e48e1161e7a54ce3cb146aed5c241d36d0 /src
parent7f53809946f86dbe05c9b868f4c96912a9c804a9 (diff)
Use runtime asserts here
Diffstat (limited to 'src')
-rw-r--r--src/codec/base64/base64.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/codec/base64/base64.cpp b/src/codec/base64/base64.cpp
index 54ff11f6e..d6c5ec7c0 100644
--- a/src/codec/base64/base64.cpp
+++ b/src/codec/base64/base64.cpp
@@ -8,6 +8,7 @@
#include <botan/base64.h>
#include <botan/mem_ops.h>
#include <botan/internal/rounding.h>
+#include <botan/internal/assert.h>
#include <stdexcept>
namespace Botan {
@@ -85,8 +86,8 @@ std::string base64_encode(const byte input[],
input, input_length,
consumed, true);
- assert(consumed == input_length);
- assert(produced == output.size());
+ BOTAN_ASSERT_EQUAL(consumed, input_length, "Did not consume all input");
+ BOTAN_ASSERT_EQUAL(produced, output.size(), "Did not produce right amount");
return output;
}