aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream/ctr
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-22 17:35:04 +0000
committerlloyd <[email protected]>2009-10-22 17:35:04 +0000
commitbbe91cb8030c2d1a910082650a02a0747a718a8e (patch)
treed06232e2cedc05662eafe827a8471b1ec688e146 /src/stream/ctr
parent8addfadd8cb724158fefd4f9e36a177b2290d11f (diff)
Remove all exception specifications. The way these are designed in C++ is
just too fragile and not that useful. Something like Java's checked exceptions might be nice, but simply killing the process entirely if an unexpected exception is thrown is not exactly useful for something trying to be robust.
Diffstat (limited to 'src/stream/ctr')
-rw-r--r--src/stream/ctr/ctr.cpp2
-rw-r--r--src/stream/ctr/ctr.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stream/ctr/ctr.cpp b/src/stream/ctr/ctr.cpp
index 5ef5e447f..5f0880fa5 100644
--- a/src/stream/ctr/ctr.cpp
+++ b/src/stream/ctr/ctr.cpp
@@ -37,7 +37,7 @@ CTR_BE::~CTR_BE()
/*
* Zeroize
*/
-void CTR_BE::clear() throw()
+void CTR_BE::clear()
{
permutation->clear();
buffer.clear();
diff --git a/src/stream/ctr/ctr.h b/src/stream/ctr/ctr.h
index f60f21b5a..5f94170cc 100644
--- a/src/stream/ctr/ctr.h
+++ b/src/stream/ctr/ctr.h
@@ -31,7 +31,7 @@ class BOTAN_DLL CTR_BE : public StreamCipher
CTR_BE* clone() const
{ return new CTR_BE(permutation->clone()); }
- void clear() throw();
+ void clear();
CTR_BE(BlockCipher*);
~CTR_BE();