diff options
author | lloyd <[email protected]> | 2009-10-22 17:35:04 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-10-22 17:35:04 +0000 |
commit | bbe91cb8030c2d1a910082650a02a0747a718a8e (patch) | |
tree | d06232e2cedc05662eafe827a8471b1ec688e146 /src/sym_algo/sym_algo.h | |
parent | 8addfadd8cb724158fefd4f9e36a177b2290d11f (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/sym_algo/sym_algo.h')
-rw-r--r-- | src/sym_algo/sym_algo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sym_algo/sym_algo.h b/src/sym_algo/sym_algo.h index 1c8b816fd..929f2a6f0 100644 --- a/src/sym_algo/sym_algo.h +++ b/src/sym_algo/sym_algo.h @@ -46,7 +46,7 @@ class BOTAN_DLL SymmetricAlgorithm * Set the symmetric key of this object. * @param key the SymmetricKey to be set. */ - void set_key(const SymmetricKey& key) throw(Invalid_Key_Length) + void set_key(const SymmetricKey& key) { set_key(key.begin(), key.length()); } /** @@ -54,7 +54,7 @@ class BOTAN_DLL SymmetricAlgorithm * @param key the to be set as a byte array. * @param the length of the byte array. */ - void set_key(const byte key[], u32bit length) throw(Invalid_Key_Length) + void set_key(const byte key[], u32bit length) { if(!valid_keylength(length)) throw Invalid_Key_Length(name(), length); |