aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-01-12 16:02:43 +0000
committerlloyd <[email protected]>2010-01-12 16:02:43 +0000
commit1ef0507955703c8167f2a48618ce6f5d6c74f7d8 (patch)
tree4fe98f858bd4d51da48de93c0ce0ae2e04bbe6b0 /checks
parentc55ec7dc7487c26338721d108dff78daf906021e (diff)
Fix a test broken by the recent exception hierarchy changes
Diffstat (limited to 'checks')
-rw-r--r--checks/ecdsa.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/checks/ecdsa.cpp b/checks/ecdsa.cpp
index 532a1c546..c86668baf 100644
--- a/checks/ecdsa.cpp
+++ b/checks/ecdsa.cpp
@@ -112,16 +112,8 @@ void test_hash_larger_than_n(RandomNumberGenerator& rng)
// we make sure it doesn't fail because of the invalid signature,
// but because of the Encoding_Error
- bool ver_exc = false;
- try
- {
- pk_verifier->verify_message(message, signature);
- }
- catch(Encoding_Error e)
- {
- ver_exc = true;
- }
- CHECK(ver_exc);
+ if(pk_verifier->verify_message(message, signature))
+ std::cout << "Corrupt ECDSA signature verified, should not have\n";
}
/**