summaryrefslogtreecommitdiff
path: root/validat6.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-07-06 15:57:08 -0400
committerJeffrey Walton <noloader@gmail.com>2019-07-06 15:57:08 -0400
commit2ffa70fbc65d6db23ad20ec9e6bd9975cd6a9b49 (patch)
tree25ee77413df25f0889d6b5c326702047c4b6d8e9 /validat6.cpp
parentfd7115fc8bf0a396d36ae0d8e92473a09e9f2c2d (diff)
downloadcryptopp-git-2ffa70fbc65d6db23ad20ec9e6bd9975cd6a9b49.tar.gz
Clear asserts under DEBUG builds
Diffstat (limited to 'validat6.cpp')
-rw-r--r--validat6.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/validat6.cpp b/validat6.cpp
index 16df05ab..798554e6 100644
--- a/validat6.cpp
+++ b/validat6.cpp
@@ -41,7 +41,7 @@ bool CryptoSystemValidate(PK_Decryptor &priv, PK_Encryptor &pub, bool thorough)
std::cout << (fail ? "FAILED " : "passed ");
std::cout << "cryptosystem key validation\n";
- const byte *message = (byte *)"test message";
+ const byte message[] = "test message";
const int messageLen = 12;
SecByteBlock ciphertext(priv.CiphertextLength(messageLen));
SecByteBlock plaintext(priv.MaxPlaintextLength(ciphertext.size()));